Catch not resetting array in density advect

This commit is contained in:
unknown 2023-07-24 18:13:43 -04:00
parent 311ef5d9e8
commit 37a9afa069

View File

@ -120,6 +120,7 @@ void advectDensity(JNIEnv * env, uint32_t chunk_mask, int N, int b, jobjectArray
for(k=1; k<N-1; k++){
for(j=1; j<N-1; j++){
for(i=1; i<N-1; i++){
sampleArr = d0;
//calculate location to pull from
x = i-dtx*u[IX(i,j,k)];
y = j-dty*v[IX(i,j,k)];