From: Wolfgang Bangerth Date: Thu, 10 Feb 2022 03:34:00 +0000 (-0700) Subject: Rename a variable. X-Git-Tag: v9.4.0-rc1~514^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3d11d6e45a196ca77beadef7e6021449b23e549;p=dealii.git Rename a variable. --- 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)