From: Wolfgang Bangerth Date: Tue, 3 Dec 2019 01:07:09 +0000 (-0700) Subject: Clarify Utilities::MPI::some_to_some(). X-Git-Tag: v9.2.0-rc1~825^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9131%2Fhead;p=dealii.git Clarify Utilities::MPI::some_to_some(). --- diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index 5b3dbc87f6..0f267f22a8 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -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