]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename a variable. 13355/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 10 Feb 2022 03:34:00 +0000 (20:34 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 10 Feb 2022 03:34:00 +0000 (20:34 -0700)
include/deal.II/base/mpi.h

index 68e2a96187571f6253d4cb4b425762d41676101c..5adb7c9880381ca75c93b8b837738f57779c7f2d 100644 (file)
@@ -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<char> 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 <typename T>
     std::vector<T>
     all_gather(const MPI_Comm &comm, const T &object)

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.