]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not use anonymous namespaces in header files. 18116/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 9 Feb 2025 22:24:03 +0000 (15:24 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Feb 2025 23:46:00 +0000 (16:46 -0700)
include/deal.II/base/mpi_consensus_algorithms.h

index 089f44932c2d15736208c0ccd971226a9976f933..bb667765cd6a8758d40bb27f9014348d19138aa1 100644 (file)
@@ -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<unsigned int>(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<unsigned int>(requesting_processes.begin(),

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.