From c300f02edf564f04c6615d69b790767f91143b8b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 4 Feb 2025 21:30:55 -0700 Subject: [PATCH] Put the declarations in mpi_stub.h into namespace dealii. --- include/deal.II/base/mpi_stub.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/deal.II/base/mpi_stub.h b/include/deal.II/base/mpi_stub.h index 498c92e932..0970de1ae2 100644 --- a/include/deal.II/base/mpi_stub.h +++ b/include/deal.II/base/mpi_stub.h @@ -24,9 +24,13 @@ #if defined(DEAL_II_WITH_MPI) # include #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 -- 2.39.5