]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Put the declarations in mpi_stub.h into namespace dealii. 18114/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 5 Feb 2025 04:30:55 +0000 (21:30 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Feb 2025 03:03:01 +0000 (20:03 -0700)
include/deal.II/base/mpi_stub.h

index 498c92e932ebc79a4718cf637b4229d55b3da6ce..0970de1ae282220e91514da8e45e5f780b12cdb4 100644 (file)
 #if defined(DEAL_II_WITH_MPI)
 #  include <mpi.h>
 #else
-// without MPI, we would still like to use
-// some constructs with MPI data
-// types. Therefore, create some dummies
+
+// Without MPI, we would still like to use some constructs with MPI
+// data types. Therefore, create some dummies. Since we only ever use
+// them inside our own constructs, the right thing to do is to put
+// them into namespace dealii:
+DEAL_II_NAMESPACE_OPEN
+
 using MPI_Comm     = int;
 using MPI_Request  = int;
 using MPI_Datatype = int;
@@ -41,5 +45,7 @@ constexpr MPI_Op      MPI_MAX          = 0;
 constexpr MPI_Op      MPI_SUM          = 0;
 constexpr MPI_Op      MPI_LOR          = 0;
 
+DEAL_II_NAMESPACE_CLOSE
+
 #endif
 #endif

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.