]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly ignore the return value of a broadcast operation. 18584/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 26 Jun 2025 00:27:16 +0000 (18:27 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 26 Jun 2025 00:28:22 +0000 (18:28 -0600)
include/deal.II/base/aligned_vector.h

index 1ae7ebb81273e6f0b2060ada2cb377d40ea841f1..28bff4f7d30308eb0b2cccd2d196e19ef99c8471 100644 (file)
@@ -1813,9 +1813,9 @@ AlignedVector<T>::replicate_across_communicator(const MPI_Comm     communicator,
           // deadlock. So we just send the result of the broadcast() call to
           // nirvana on the root process and keep our current state.
           if (Utilities::MPI::this_mpi_process(shmem_roots_communicator) == 0)
-            Utilities::MPI::broadcast(shmem_roots_communicator,
-                                      *this,
-                                      shmem_roots_root_rank);
+            std::ignore = Utilities::MPI::broadcast(shmem_roots_communicator,
+                                                    *this,
+                                                    shmem_roots_root_rank);
           else
             *this = Utilities::MPI::broadcast(shmem_roots_communicator,
                                               *this,

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.