diff --git a/tests/lbpm_color_simulator.cpp b/tests/lbpm_color_simulator.cpp index 2cf4d519..416f51d8 100644 --- a/tests/lbpm_color_simulator.cpp +++ b/tests/lbpm_color_simulator.cpp @@ -364,6 +364,11 @@ int main(int argc, char **argv) if (Averages.SDs(n) > 0.0){ sum++; } + // The following turns off communication if external BC are being set + if (BoundaryCondition > 0){ + if (kproc==0 && k==0) id[n]=0; + if (kproc==nproz-1 && k==Nz-1) id[n]=0; + } } } }