Fixing kstart / kfinish for iVol_global

This commit is contained in:
James McClure
2014-08-19 22:03:58 -04:00
parent e8d270a1a0
commit a9d975a9ab

View File

@@ -333,7 +333,7 @@ int main(int argc, char **argv)
int sum = 0;
double sum_local;
double iVol_global = 1.0/(1.0*(Nx-2)*(Ny-2)*(Nz-2)*nprocs);
if (pBC) iVol_global = 1.0/(1.0*(Nx-2)*iproc*(Ny-2)*jproc*((Nz-2)*kproc-6));
if (pBC) iVol_global = 1.0/(1.0*(Nx-2)*nprocx*(Ny-2)*nprocy*((Nz-2)*nprocz-6));
double porosity;
//...........................................................................
DoubleArray SignDist(Nx,Ny,Nz);