don't compute in the halo region unnecessarily

This commit is contained in:
James E McClure 2015-06-26 14:16:56 -04:00
parent ead3fd59c2
commit 049ad65adf

View File

@ -948,7 +948,7 @@ int main(int argc, char **argv)
for (j=0;j<Ny;j++){
for (i=0;i<Nx;i++){
n = k*Nx*Ny+j*Nx+i;
if (i==0 || i==Nx-1 || j==0 || j=Ny-1 || k==0 || k == Nz-1) id[n] = 0;
if (i==0 || i==Nx-1 || j==0 || j==Ny-1 || k==0 || k==Nz-1) id[n] = 0;
}
}
}