]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Insert a barrier into a test.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Apr 2021 22:08:49 +0000 (16:08 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 27 Apr 2021 22:08:49 +0000 (16:08 -0600)
tests/base/aligned_vector_replicate_02.cc

index ce7dc8b3bea181aa31b3f4bd3b6d4d95872c8e56..6589a0dff06b068fd2c627fa5eaa3f1e58dd10bd 100644 (file)
@@ -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.

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.