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

This commit is contained in:
James McClure
2014-11-08 22:22:04 -05:00
parent 2a0682b9c7
commit 4aab329db3

View File

@@ -288,8 +288,8 @@ 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 < (Ny-2)*nprocx-(jproc*(Ny-2)+j-2)*1.0)) (Ny-2)*nprocx-(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;