From abb6add6716d9934d428f31f59e0b7f50f1ac7d5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 12 Jan 2022 21:12:02 -0700 Subject: [PATCH] Rename a function. While there, also use the correct data type for its argument. --- include/deal.II/base/mpi_consensus_algorithms.h | 2 +- include/deal.II/base/mpi_consensus_algorithms.templates.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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:: -- 2.39.5