From d3d11d6e45a196ca77beadef7e6021449b23e549 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 9 Feb 2022 20:34:00 -0700 Subject: [PATCH] Rename a variable. --- include/deal.II/base/mpi.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index 68e2a96187..5adb7c9880 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -1362,7 +1362,7 @@ namespace Utilities else send_to.emplace_back(m.first); - const unsigned int n_point_point_communications = + const unsigned int n_expected_incoming_messages = Utilities::MPI::compute_n_point_to_point_communications(comm, send_to); // Protect the following communication: @@ -1373,7 +1373,7 @@ namespace Utilities // processors, we need to visit one of the two scopes below. Otherwise, // no other action is required by this mpi process, and we can safely // return. - if (send_to.size() == 0 && n_point_point_communications == 0) + if (send_to.size() == 0 && n_expected_incoming_messages == 0) return received_objects; const int mpi_tag = @@ -1406,7 +1406,7 @@ namespace Utilities { std::vector buffer; // We do this on a first come/first served basis - for (unsigned int i = 0; i < n_point_point_communications; ++i) + for (unsigned int i = 0; i < n_expected_incoming_messages; ++i) { // Probe what's going on. Take data from the first available sender MPI_Status status; @@ -1450,6 +1450,8 @@ namespace Utilities # endif // deal.II with MPI } + + template std::vector all_gather(const MPI_Comm &comm, const T &object) -- 2.39.5