Updating unit test TestCommD3Q19

This commit is contained in:
James E McClure
2015-06-25 10:59:26 -04:00
parent 8c3b4055d5
commit 43f2163697

View File

@@ -260,6 +260,8 @@ int main(int argc, char **argv)
iproc = rank-nprocx*nprocy*kproc-nprocz*jproc;
int BoundaryCondition=0;
double iVol_global = 1.0/Nx/Ny/Nz/nprocx/nprocy/nprocz;
Domain Dm(Nx,Ny,Nz,rank,nprocx,nprocy,nprocz,Lx,Ly,Lz,BoundaryCondition);
Nx += 2;
@@ -299,8 +301,7 @@ int main(int argc, char **argv)
// Compute the media porosity
//.......................................................................
double sum;
double sum_local=0.0, porosity, iVol_global;
iVol_global = 1.0/Nx/Ny/Nz/nprocx/nprocy/nprocz;
double sum_local=0.0, porosity;
char component = 0; // solid phase
for (k=1;k<Nz-1;k++){
for (j=1;j<Ny-1;j++){