From 935a2ec42effdade9270300d6b903d598bc19f43 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 27 Apr 2021 16:08:49 -0600 Subject: [PATCH] Insert a barrier into a test. --- tests/base/aligned_vector_replicate_02.cc | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.39.5