From: Wolfgang Bangerth Date: Wed, 26 May 2021 21:58:15 +0000 (-0600) Subject: Add a missing AssertThrowMPI. X-Git-Tag: v9.4.0-rc1~1327^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12321%2Fhead;p=dealii.git Add a missing AssertThrowMPI. --- diff --git a/include/deal.II/base/aligned_vector.h b/include/deal.II/base/aligned_vector.h index 9f216af047..4260619aa2 100644 --- a/include/deal.II/base/aligned_vector.h +++ b/include/deal.II/base/aligned_vector.h @@ -1237,8 +1237,8 @@ AlignedVector::replicate_across_communicator(const MPI_Comm & communicator, /* key */ 0, MPI_INFO_NULL, &shmem_group_communicator_temp); - AssertThrowMPI(ierr); + const int key = (Utilities::MPI::this_mpi_process(communicator) == root_process ? 0 : 1); ierr = MPI_Comm_split(shmem_group_communicator_temp, @@ -1254,6 +1254,7 @@ AlignedVector::replicate_across_communicator(const MPI_Comm & communicator, // And get rid of the temporary communicator ierr = MPI_Comm_free(&shmem_group_communicator_temp); + AssertThrowMPI(ierr); } const bool is_shmem_root = Utilities::MPI::this_mpi_process(shmem_group_communicator) == 0;