From 210ad0e88670aa8ea2ec47d396bc4921dc95749a Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Sat, 16 Sep 2017 00:44:25 +0200 Subject: [PATCH] Fixed compilation issue in serial. --- include/deal.II/base/mpi.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/include/deal.II/base/mpi.h b/include/deal.II/base/mpi.h index be74af12c4..dd8a512b5c 100644 --- a/include/deal.II/base/mpi.h +++ b/include/deal.II/base/mpi.h @@ -25,14 +25,23 @@ // some constructs with MPI data // types. Therefore, create some dummies typedef int MPI_Comm; -const int MPI_COMM_SELF = 0; -const int MPI_COMM_WORLD = 0; typedef int MPI_Datatype; typedef int MPI_Op; - -static const int MPI_MIN = 0; -static const int MPI_MAX = 0; -static const int MPI_SUM = 0; +# ifndef MPI_COMM_WORLD +# define MPI_COMM_WORLD 0 +# endif +# ifndef MPI_COMM_SELF +# define MPI_COMM_SELF 0 +# endif +# ifndef MPI_MIN +# define MPI_MIN 0 +# endif +# ifndef MPI_MAX +# define MPI_MAX 0 +# endif +# ifndef MPI_SUM +# define MPI_SUM 0 +# endif #endif DEAL_II_NAMESPACE_OPEN -- 2.39.5