Fixed pressure bc in lbpm_color_simulator
This commit is contained in:
@@ -375,6 +375,21 @@ int main(int argc, char **argv)
|
|||||||
fread(id,1,N,IDFILE);
|
fread(id,1,N,IDFILE);
|
||||||
fclose(IDFILE);
|
fclose(IDFILE);
|
||||||
|
|
||||||
|
/* for ( k=0;k<Nz;k++){
|
||||||
|
for ( j=0;j<Ny;j++){
|
||||||
|
for ( i=0;i<Nx;i++){
|
||||||
|
n = k*Nx*Ny+j*Nx+i;
|
||||||
|
// The following turns off communication if external BC are being set
|
||||||
|
if (BoundaryCondition > 0){
|
||||||
|
if (kproc==0 && k==0) id[n]=0;
|
||||||
|
if (kproc==0 && k==1) id[n]=0;
|
||||||
|
if (kproc==nprocz-1 && k==Nz-2) id[n]=0;
|
||||||
|
if (kproc==nprocz-1 && k==Nz-1) id[n]=0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
// Set up kstart, kfinish so that the reservoirs are excluded from averaging
|
// Set up kstart, kfinish so that the reservoirs are excluded from averaging
|
||||||
int kstart,kfinish;
|
int kstart,kfinish;
|
||||||
kstart = 1;
|
kstart = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user