]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename a variable and update the documentation. 13257/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 15 Jan 2022 05:23:57 +0000 (22:23 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Jan 2022 03:17:07 +0000 (20:17 -0700)
include/deal.II/base/mpi_consensus_algorithms.h
include/deal.II/base/mpi_consensus_algorithms.templates.h

index 27bb26716665f9deaf0bee67b9ebac897769cd17..c4285ebcc10a303216ea56ddeb415704ec36ffb2 100644 (file)
@@ -459,12 +459,9 @@ namespace Utilities
         std::vector<std::vector<T2>> recv_buffers;
 
         /**
-         * Requests for sending requests and receiving answers to requests.
-         * The first half of the array is used for the receive-answer
-         * requests objects, the second half for the send-request request
-         * objects.
+         * MPI request objects for sending request messages.
          */
-        std::vector<MPI_Request> send_request_and_recv_answer_requests;
+        std::vector<MPI_Request> send_request_requests;
 
         /**
          * Buffers for sending answers to requests.
index b5e64a58114a487b4af0b6e8aadfb71ae19f81e5..7fd6d14c5ff2cfc2c1fd699dfe07ee103f00c089 100644 (file)
@@ -488,7 +488,7 @@ namespace Utilities
         // 2) allocate memory
         recv_buffers.resize(n_targets);
         send_buffers.resize(n_targets);
-        send_request_and_recv_answer_requests.resize(n_targets);
+        send_request_requests.resize(n_targets);
 
         send_answer_requests.resize(n_sources);
         requests_buffers.resize(n_sources);
@@ -510,7 +510,7 @@ namespace Utilities
                                   rank,
                                   tag_request,
                                   this->comm,
-                                  &send_request_and_recv_answer_requests[i]);
+                                  &send_request_requests[i]);
             AssertThrowMPI(ierr);
           }
 
@@ -646,12 +646,11 @@ namespace Utilities
 #ifdef DEAL_II_WITH_MPI
         // Finalize all MPI_Request objects for both the
         // send-request and receive-answer operations.
-        if (send_request_and_recv_answer_requests.size() > 0)
+        if (send_request_requests.size() > 0)
           {
-            const int ierr =
-              MPI_Waitall(send_request_and_recv_answer_requests.size(),
-                          send_request_and_recv_answer_requests.data(),
-                          MPI_STATUSES_IGNORE);
+            const int ierr = MPI_Waitall(send_request_requests.size(),
+                                         send_request_requests.data(),
+                                         MPI_STATUSES_IGNORE);
             AssertThrowMPI(ierr);
           }
 

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.