From d05fd3179de3a2352aa6c49dd55762ba00630104 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 9 Feb 2025 15:24:03 -0700 Subject: [PATCH] Do not use anonymous namespaces in header files. --- include/deal.II/base/mpi_consensus_algorithms.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/deal.II/base/mpi_consensus_algorithms.h b/include/deal.II/base/mpi_consensus_algorithms.h index 089f44932c..bb667765cd 100644 --- a/include/deal.II/base/mpi_consensus_algorithms.h +++ b/include/deal.II/base/mpi_consensus_algorithms.h @@ -1279,7 +1279,7 @@ namespace Utilities { namespace ConsensusAlgorithms { - namespace + namespace internal { /** * Return whether a vector of targets (MPI ranks) has only unique @@ -1373,7 +1373,7 @@ namespace Utilities std::rethrow_exception(exception); # endif } - } // namespace + } // namespace internal @@ -1450,7 +1450,7 @@ namespace Utilities &process_answer, const MPI_Comm comm) { - Assert(has_unique_elements(targets), + Assert(internal::has_unique_elements(targets), ExcMessage("The consensus algorithms expect that each process " "only sends a single message to another process, " "but the targets provided include duplicates.")); @@ -1497,7 +1497,7 @@ namespace Utilities } catch (...) { - handle_exception(std::current_exception(), comm); + internal::handle_exception(std::current_exception(), comm); } return std::vector(requesting_processes.begin(), @@ -1821,7 +1821,7 @@ namespace Utilities &process_answer, const MPI_Comm comm) { - Assert(has_unique_elements(targets), + Assert(internal::has_unique_elements(targets), ExcMessage("The consensus algorithms expect that each process " "only sends a single message to another process, " "but the targets provided include duplicates.")); @@ -1849,7 +1849,7 @@ namespace Utilities } catch (...) { - handle_exception(std::current_exception(), comm); + internal::handle_exception(std::current_exception(), comm); } return std::vector(requesting_processes.begin(), -- 2.39.5