]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clarify Utilities::MPI::some_to_some(). 9131/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Dec 2019 01:07:09 +0000 (18:07 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 3 Dec 2019 01:07:09 +0000 (18:07 -0700)
include/deal.II/base/mpi.h

index 5b3dbc87f6fa6b64127b37c7e49cef312ec0fb5a..0f267f22a88ddbde248c6416a885067108ea9a78 100644 (file)
@@ -885,8 +885,11 @@ namespace Utilities
      * @param[in] comm MPI communicator.
      *
      * @param[in] objects_to_send A map from the rank (unsigned int) of the
-     *  process meant to receive the data and the object to send (the type T
-     *  must be serializable for this function to work properly).
+     *  process meant to receive the data and the object to send (the type `T`
+     *  must be serializable for this function to work properly). If this
+     *  map contains an entry with a key equal to the rank of the current
+     *  process (i.e., an instruction to a process to send data to itself),
+     *  then this data item is simply copied to the returned object.
      *
      * @return A map from the rank (unsigned int) of the process
      *  which sent the data and object received.
@@ -1500,7 +1503,7 @@ namespace Utilities
         else
           send_to.emplace_back(m.first);
 
-      const auto n_point_point_communications =
+      const unsigned int n_point_point_communications =
         Utilities::MPI::compute_n_point_to_point_communications(comm, send_to);
 
       // If we have something to send, or we expect something from other

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.