diff --git a/tests/lbpm_color_simulator.cpp b/tests/lbpm_color_simulator.cpp index 46eea8a0..259b1fa8 100644 --- a/tests/lbpm_color_simulator.cpp +++ b/tests/lbpm_color_simulator.cpp @@ -366,9 +366,16 @@ int main(int argc, char **argv) if (!pBC && rank==0) printf("Initializing with NWP saturation = %f \n",wp_saturation); if (!pBC) GenerateResidual(id,Nx,Ny,Nz,wp_saturation); + // Set up kstart, kfinish so that the reservoirs are excluded from averaging + int kstart,kfinish; + kstart = 1; + kfinish = Nz-1; + if (pBC && kproc==0) kstart = 4; + if (pBC && kproc==nprocz-1) kfinish = Nz-4; + // Compute the pore volume sum_local = 0.0; - for ( k=1;k