From 9c064ca56cc7851ca25a4d1e6fd8ea6c17313c11 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 26 May 2021 15:58:15 -0600 Subject: [PATCH] Add a missing AssertThrowMPI. --- include/deal.II/base/aligned_vector.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5