Distributions within solid phase (not physically meaningful) are re-initialized in the ComputeVelocityD3Q19 routine to a negative value

This commit is contained in:
James E McClure committed 2015-11-28 17:47:10 -05:00
1 parent 1b653312d9
commit 1a037752cc
2 files changed
+15

No files matched your search

+7
View File
@@ -385,6 +385,13 @@ extern "C" void ComputeVelocityD3Q19(char *ID, double *disteven, double *distodd
//........................................................................
}
else{
for(int q=0; q<9; q++){
f_even[q*N+n] = -1.0;
f_odd[q*N+n] = -1.0;
}
f_even[9*N+n] = -1.0;
}
}
}
+8
View File
@@ -296,6 +296,14 @@ __global__ void dvc_ComputeVelocityD3Q19(char *ID, double *disteven, double *di
vel[2*N+n] = vz;
//........................................................................
}
else{
for(int q=0; q<9; q++){
f_even[q*N+n] = -1.0;
f_odd[q*N+n] = -1.0;
}
f_even[9*N+n] = -1.0;
}
}
}
}