From 2239408fc47bd34ef0f8c68c7bf40ab1ce577ae5 Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Mon, 2 Dec 2019 17:06:27 +0100 Subject: [PATCH] Replace compute_point_to_point_communication_pattern with compute_n_point_to_point_communications --- include/deal.II/base/mpi.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; -- 2.39.5