]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a missing AssertThrowMPI. 12321/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 26 May 2021 21:58:15 +0000 (15:58 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 26 May 2021 21:58:15 +0000 (15:58 -0600)
include/deal.II/base/aligned_vector.h

index 9f216af047e77d3495585dbd2bf34149017cf441..4260619aa23364b1bf757c15e3c9327340511318 100644 (file)
@@ -1237,8 +1237,8 @@ AlignedVector<T>::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<T>::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;

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.