]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed compilation issue in serial. 4852/head
authorLuca Heltai <luca.heltai@sissa.it>
Fri, 15 Sep 2017 22:44:25 +0000 (00:44 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Fri, 15 Sep 2017 22:44:25 +0000 (00:44 +0200)
include/deal.II/base/mpi.h

index be74af12c4bba63f892465f3ea65de1fee8eb7e7..dd8a512b5c2e1294639d9121b91dea50648b6b2a 100644 (file)
 // 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

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.