From c35f63d2fee8e2b75c89f4eae6d6e02928bab476 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Tue, 20 Feb 2018 15:16:08 -0500 Subject: [PATCH] Checking TestMRT for porous media --- tests/TestMRT.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/TestMRT.cpp b/tests/TestMRT.cpp index d4dc132e..682735f4 100644 --- a/tests/TestMRT.cpp +++ b/tests/TestMRT.cpp @@ -523,7 +523,7 @@ int main(int argc, char **argv) int dim = 50; //if (rank == 0) printf("dim=%d\n",dim); int timestep = 1; - int timesteps = 100; + int timesteps = 1000; int centralNode = 2; double tau = 1.0; @@ -609,6 +609,7 @@ int main(int argc, char **argv) if (rank==0){ printf("********************************************************\n"); printf("Sub-domain size = %i x %i x %i\n",Nx,Ny,Nz); + printf("Process grid = %i x %i x %i\n",nprocx,nprocy,nprocz); printf("********************************************************\n"); } @@ -649,6 +650,7 @@ int main(int argc, char **argv) fread(Dm.id,1,N,IDFILE); fclose(IDFILE); + MPI_Barrier(comm); Dm.CommInit(comm); //....................................................................... @@ -669,6 +671,7 @@ int main(int argc, char **argv) } } } + MPI_Barrier(comm); MPI_Allreduce(&sum_local,&sum,1,MPI_DOUBLE,MPI_SUM,comm); porosity = sum*iVol_global; if (rank==0) printf("Media porosity = %f \n",porosity);