From: Wolfgang Bangerth Date: Tue, 27 Apr 2021 22:08:49 +0000 (-0600) Subject: Insert a barrier into a test. X-Git-Tag: v9.3.0-rc1~168^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=935a2ec42effdade9270300d6b903d598bc19f43;p=dealii.git Insert a barrier into a test. --- diff --git a/tests/base/aligned_vector_replicate_02.cc b/tests/base/aligned_vector_replicate_02.cc index ce7dc8b3be..6589a0dff0 100644 --- a/tests/base/aligned_vector_replicate_02.cc +++ b/tests/base/aligned_vector_replicate_02.cc @@ -62,6 +62,9 @@ test() else if (Utilities::MPI::this_mpi_process(communicator) == 2) avec[3] = 44; + // Create a barrier before we check the effect + MPI_Barrier(communicator); + // Final step, let every process output what it now has. Every // process should be able to see the changed element, even though // only one changed it.