From: Wolfgang Bangerth Date: Wed, 5 Feb 2025 04:30:55 +0000 (-0700) Subject: Put the declarations in mpi_stub.h into namespace dealii. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18114%2Fhead;p=dealii.git Put the declarations in mpi_stub.h into namespace dealii. --- 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