From: Wolfgang Bangerth Date: Wed, 18 Sep 2024 21:57:28 +0000 (-0600) Subject: Rename a constructor argument and member variable. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68ba1e8c28b1188e8bf3af55881fddcec6f1141f;p=dealii.git Rename a constructor argument and member variable. --- 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"));