From: Wolfgang Bangerth Date: Thu, 13 Jan 2022 04:12:02 +0000 (-0700) Subject: Rename a function. X-Git-Tag: v9.4.0-rc1~609^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb6add6716d9934d428f31f59e0b7f50f1ac7d5;p=dealii.git Rename a function. While there, also use the correct data type for its argument. --- diff --git a/include/deal.II/base/mpi_consensus_algorithms.h b/include/deal.II/base/mpi_consensus_algorithms.h index f60b69312e..38111dd31e 100644 --- a/include/deal.II/base/mpi_consensus_algorithms.h +++ b/include/deal.II/base/mpi_consensus_algorithms.h @@ -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 diff --git a/include/deal.II/base/mpi_consensus_algorithms.templates.h b/include/deal.II/base/mpi_consensus_algorithms.templates.h index ffdecedb09..81a2941cdc 100644 --- a/include/deal.II/base/mpi_consensus_algorithms.templates.h +++ b/include/deal.II/base/mpi_consensus_algorithms.templates.h @@ -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 void - PEX::answer_requests(int index) + PEX::answer_one_request(const unsigned int index) { #ifdef DEAL_II_WITH_MPI const int tag_request = Utilities::MPI::internal::Tags::