break out solver consts
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2024-11-30 21:06:57 -05:00
parent 6671cf1818
commit 69d49b770c
5 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,3 @@
#maven.buildNumber.plugin properties file
#Sat Nov 30 20:54:45 EST 2024
buildNumber=443
#Sat Nov 30 21:00:16 EST 2024
buildNumber=444

View File

@ -1199,6 +1199,7 @@ Convert server side fluid storage to using buffers
Move cellular automata simulator package
Update fluid chunk dimensions to correspond with C code
Update release build system to include shared libraries
Break out solver consts

View File

@ -0,0 +1,6 @@
#ifndef SOLVER_CONSTS_H
#define SOLVER_CONSTS_H
#define LINEARSOLVERTIMES 5
#endif

View File

@ -9,6 +9,7 @@
#include "./chunkmask.c"
#include "./velocitystep.c"
#include "./densitystep.c"
#include "../includes/solver_consts.h"
#ifndef SAVE_STEPS
#define SAVE_STEPS 0
@ -16,7 +17,6 @@
#define DIM 18
#define LINEARSOLVERTIMES 20
#define REALLY_SMALL_VALUE 0.00001
#define DIFFUSION_CONSTANT 0.00001

View File

@ -5,6 +5,7 @@
#include "../includes/utilities.h"
#include "../includes/chunkmask.h"
#include "../includes/chunk.h"
#include "../includes/solver_consts.h"
#define BOUND_NO_DIR 0
@ -15,8 +16,6 @@
#define SET_BOUND_IGNORE 0
#define SET_BOUND_USE_NEIGHBOR 1
#define LINEARSOLVERTIMES 20
static inline void add_source(int N, float * x, float * s, float dt);
static inline void advect(uint32_t chunk_mask, int N, int b, float ** jrd, float ** jrd0, float * u, float * v, float * w, float dt);