#ifndef FLUID_GRID2_UTILITIES_H #define FLUID_GRID2_UTILITIES_H #include /** * Adds from a source array to a destination array */ void fluid_grid2_add_source(float * x, float * s, float dt); /** * Sets the bounds of this cube to those of its neighbor */ void fluid_grid2_setBoundsToNeighborsRaw( int chunk_mask, int vector_dir, float ** neighborArray ); /** * This exclusively copies neighbors to make sure zeroing out stuff doesn't break sim */ void fluid_grid2_copyNeighborsRaw( int chunk_mask, int cx, int vector_dir, float ** neighborArray ); /** * Sums the density of the chunk */ double fluid_grid2_calculateSum(uint32_t chunk_mask, float ** d); #endif