From: Daniel Arndt Date: Wed, 5 May 2021 19:37:20 +0000 (-0400) Subject: Fix base/aligned_vector_replicate_03.mpirun=3.release X-Git-Tag: v9.3.0-rc1~128^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c94a4ab97e77d7b1ebb8422b4386780f1f4419a;p=dealii.git Fix base/aligned_vector_replicate_03.mpirun=3.release --- diff --git a/include/deal.II/base/aligned_vector.h b/include/deal.II/base/aligned_vector.h index 96c0199537..6f0eddc8b0 100644 --- a/include/deal.II/base/aligned_vector.h +++ b/include/deal.II/base/aligned_vector.h @@ -1553,6 +1553,10 @@ AlignedVector::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