]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename a function.
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 13 Jan 2022 04:12:02 +0000 (21:12 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 14 Jan 2022 12:01:05 +0000 (05:01 -0700)
While there, also use the correct data type for its argument.

include/deal.II/base/mpi_consensus_algorithms.h
include/deal.II/base/mpi_consensus_algorithms.templates.h

index f60b69312e52336643a59fcd7164e14c668e8454..38111dd31ec1549db206515a00a90c3e7bf6bd02 100644 (file)
@@ -496,7 +496,7 @@ namespace Utilities
          * the request and send an answer.
          */
         void
-        answer_requests(int index);
+        answer_one_request(const unsigned int index);
 
         /**
          * After all answers have been exchanged, the MPI data structures can be
index ffdecedb097d7fce3a989a0202244d0c9d18efac..81a2941cdc52c348f5bf74a988f089d1a0b34ce4 100644 (file)
@@ -409,9 +409,9 @@ namespace Utilities
         //    especially determine how many requests are expected
         const unsigned int n_requests = start_communication();
 
-        // 2) answer requests
+        // 2) Answer requests
         for (unsigned int request = 0; request < n_requests; ++request)
-          answer_requests(request);
+          answer_one_request(request);
 
         // 3) process answers
         clean_up_and_end_communication();
@@ -493,7 +493,7 @@ namespace Utilities
 
       template <typename T1, typename T2>
       void
-      PEX<T1, T2>::answer_requests(int index)
+      PEX<T1, T2>::answer_one_request(const unsigned int index)
       {
 #ifdef DEAL_II_WITH_MPI
         const int tag_request = Utilities::MPI::internal::Tags::

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.