]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Augment the documentation of a member variable.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 9 Jan 2022 19:02:22 +0000 (12:02 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 15 Jan 2022 14:24:05 +0000 (07:24 -0700)
include/deal.II/base/mpi_consensus_algorithms.h

index 814bc1610e5286036ce5b7b72599eef18c1c3ed6..62beefe7ef4af227ac988bdeba0190903291eece 100644 (file)
@@ -329,7 +329,11 @@ namespace Utilities
         std::vector<MPI_Request> recv_requests;
 
         /**
-         * Buffers for sending answers to requests.
+         * Buffers for sending answers to requests. We use a vector of
+         * pointers because that guarantees that the buffers themselves
+         * are newer moved around in memory, even if the vector is
+         * resized and consequently its elements (the pointers) are moved
+         * around.
          */
         std::vector<std::unique_ptr<std::vector<T2>>> request_buffers;
 

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.