Added pre-processor for 2D disc packs test/lbpm_disc_pp.cpp

This commit is contained in:
James McClure 2014-11-08 22:20:36 -05:00
parent 628e82d0e3
commit 2a0682b9c7

View File

@ -288,7 +288,7 @@ int main(int argc, char **argv)
for (i=0;i<Nx;i++){
dst = (iproc*(Nx-2)+i-2)*1.0;
if ((Nx-2)*nprocx-dst < dst) dst = Nx*nprocx-dst;
if (dst < (jproc*(Ny-2)+j-2)*1.0)) dst = (jproc*(Ny-2)+j-2)*1.0);
if (dst < (jproc*(Ny-2)+ j-2)*1.0) dst = (jproc*(Ny-2)+j-2)*1.0);
if (dst < (Ny-2)*nprocx-(jproc*(Ny-2)+j-2)*1.0)) (Ny-2)*nprocx-(jproc*(Ny-2)+j-2)*1.0);
if (dst < SignDist(i,j,k)) SignDist(i,j,k) = dst;