fix miscellaneous typos and bugs; huckleberry build passed

This commit is contained in:
Rex Zhe Li
2021-03-31 21:37:52 -04:00
parent c2991dae20
commit a99c558552
2 changed files with 76 additions and 5 deletions

View File

@@ -1669,8 +1669,8 @@ extern "C" void ScaLBL_D3Q19_AAodd_FreeLeeModel_Combined(int *neighborList, int
mgz = -3.0*1.0/18.0*(mm5-mm6+0.5*(mm11-mm12-mm13+mm14+mm15-mm16-mm17+mm18));
//de-noise color gradient and mixed gradient
c = sqrt(nx*nx+ny*ny+nz*nz);
if (c<1.0e-12) nx=ny=nz=0.0;
C = sqrt(nx*nx+ny*ny+nz*nz);
if (C<1.0e-12) nx=ny=nz=0.0;
double mg_mag = sqrt(mgx*mgx+mgy*mgy+mgz*mgz);
if (mg_mag<1.0e-12) mgx=mgy=mgz=0.0;
//maybe you can also de-noise chemical potential ? within the bulk phase chem should be zero