From: Wolfgang Bangerth Date: Tue, 5 Nov 2024 22:16:17 +0000 (-0700) Subject: Adjust a test to use a now public function. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a99ae44a4852b0c3c6c7b4741837549c557f33d7;p=dealii.git Adjust a test to use a now public function. --- diff --git a/tests/mpi/compute_index_owner_01.cc b/tests/mpi/compute_index_owner_01.cc index 3a1461e481..aa211772c6 100644 --- a/tests/mpi/compute_index_owner_01.cc +++ b/tests/mpi/compute_index_owner_01.cc @@ -18,7 +18,6 @@ // in the context of Vectors and Partitioners) #include -#include #include #include "../tests.h" @@ -53,17 +52,10 @@ test() local_relevant.print(deallog); { - std::vector owning_ranks_of_ghosts( - local_relevant.n_elements()); - - Utilities::MPI::internal::ComputeIndexOwner::ConsensusAlgorithmsPayload - process(local_owned, local_relevant, comm, owning_ranks_of_ghosts, true); - - Utilities::MPI::ConsensusAlgorithms::Selector< - std::vector>, - std::vector> - consensus_algorithm; - consensus_algorithm.run(process, comm); + const auto [owning_ranks_of_ghosts, import_data] = + Utilities::MPI::compute_index_owner_and_requesters(local_owned, + local_relevant, + comm); deallog << "owning_ranks_of_ghosts:" << std::endl; for (auto i : owning_ranks_of_ghosts) @@ -71,7 +63,6 @@ test() deallog << std::endl; deallog << "requesters:" << std::endl; - std::map import_data = process.get_requesters(); for (const auto &m : import_data) { deallog << m.first << ": ";