From 68ba1e8c28b1188e8bf3af55881fddcec6f1141f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 18 Sep 2024 15:57:28 -0600 Subject: [PATCH] Rename a constructor argument and member variable. --- .../deal.II/base/mpi_compute_index_owner_internal.h | 4 ++-- source/base/mpi_compute_index_owner_internal.cc | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/deal.II/base/mpi_compute_index_owner_internal.h b/include/deal.II/base/mpi_compute_index_owner_internal.h index e95096ca92..012e03d51a 100644 --- a/include/deal.II/base/mpi_compute_index_owner_internal.h +++ b/include/deal.II/base/mpi_compute_index_owner_internal.h @@ -227,7 +227,7 @@ namespace Utilities const IndexSet &indices_to_look_up, const MPI_Comm comm, std::vector &owning_ranks, - const bool track_index_requests = false); + const bool track_index_requesters = false); /** * The index space which describes the locally owned space. @@ -262,7 +262,7 @@ namespace Utilities * indices, and what those indices were. If true, it will be added * into `requesters` and can be queried by `get_requesters()`. */ - const bool track_index_requests; + const bool track_index_requesters; /** * The result of the index owner computation: To each index diff --git a/source/base/mpi_compute_index_owner_internal.cc b/source/base/mpi_compute_index_owner_internal.cc index 44dc278d52..356613e5f2 100644 --- a/source/base/mpi_compute_index_owner_internal.cc +++ b/source/base/mpi_compute_index_owner_internal.cc @@ -458,13 +458,13 @@ namespace Utilities const IndexSet &indices_to_look_up, const MPI_Comm comm, std::vector &owning_ranks, - const bool track_index_requests) + const bool track_index_requesters) : owned_indices(owned_indices) , indices_to_look_up(indices_to_look_up) , comm(comm) , my_rank(this_mpi_process(comm)) , n_procs(n_mpi_processes(comm)) - , track_index_requests(track_index_requests) + , track_index_requesters(track_index_requesters) , owning_ranks(owning_ranks) { dict.reinit(owned_indices, comm); @@ -488,7 +488,7 @@ namespace Utilities dict.actually_owning_ranks[i - dict.local_range.first]; request_buffer.push_back(actual_owner); - if (track_index_requests) + if (track_index_requesters) append_index_origin(i - dict.local_range.first, other_rank, actual_owner, @@ -513,7 +513,7 @@ namespace Utilities { owning_ranks[index] = dict.actually_owning_ranks[i - dict.local_range.first]; - if (track_index_requests) + if (track_index_requesters) append_index_origin(i - dict.local_range.first, my_rank, owning_ranks[index], @@ -575,7 +575,7 @@ namespace Utilities std::map ConsensusAlgorithmsPayload::get_requesters() { - Assert(track_index_requests, + Assert(track_index_requesters, ExcMessage("Must enable index range tracking in " "constructor of ConsensusAlgorithmProcess")); -- 2.39.5