From: Luca Heltai Date: Mon, 2 Dec 2019 16:06:27 +0000 (+0100) Subject: Replace compute_point_to_point_communication_pattern with compute_n_point_to_point_co... X-Git-Tag: v9.2.0-rc1~828^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2239408fc47bd34ef0f8c68c7bf40ab1ce577ae5;p=dealii.git Replace compute_point_to_point_communication_pattern with compute_n_point_to_point_communications --- diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index 3f1277a0c4..9af1832740 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -1504,9 +1504,8 @@ namespace Utilities if (send_to.size() == 0) return received_objects; - const auto receive_from = - Utilities::MPI::compute_point_to_point_communication_pattern(comm, - send_to); + const auto n_point_point_communications = + Utilities::MPI::compute_n_point_to_point_communications(comm, send_to); // Protect the following communication: static CollectiveMutex mutex; @@ -1541,7 +1540,7 @@ namespace Utilities { std::vector buffer; // We do this on a first come/first served basis - for (unsigned int i = 0; i < receive_from.size(); ++i) + for (unsigned int i = 0; i < n_point_point_communications; ++i) { // Probe what's going on. Take data from the first available sender MPI_Status status;