]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace compute_point_to_point_communication_pattern with compute_n_point_to_point_co...
authorLuca Heltai <luca.heltai@sissa.it>
Mon, 2 Dec 2019 16:06:27 +0000 (17:06 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Mon, 2 Dec 2019 16:06:27 +0000 (17:06 +0100)
include/deal.II/base/mpi.h

index 3f1277a0c4b9c5f6df0b59272362a38bdbff0bcf..9af1832740e15a0ef12c351618194b81346edf9b 100644 (file)
@@ -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<char> 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;

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.