]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix base/aligned_vector_replicate_03.mpirun=3.release
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 5 May 2021 19:37:20 +0000 (15:37 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 5 May 2021 20:13:31 +0000 (16:13 -0400)
include/deal.II/base/aligned_vector.h

index 96c0199537a897ff54b5843aad7293c55e2608e3..6f0eddc8b028bdf641258fb426640360097480e4 100644 (file)
@@ -1553,6 +1553,10 @@ AlignedVector<T>::replicate_across_communicator(const MPI_Comm &   communicator,
   used_elements_end      = elements.get() + array_size;
   allocated_elements_end = used_elements_end;
 
+  // Make sure that the shared memory host has copied the data before we try to
+  // access it.
+  MPI_Barrier(shmem_group_communicator);
+
   // **** Consistency check ****
   // At this point, each process should have a copy of the data.
   // Verify this in some sort of round-about way

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.