From 4d87dcc08d73a122d3fc676504ec6b0a2ecb0e8a Mon Sep 17 00:00:00 2001 From: heltai Date: Thu, 4 Jul 2013 12:38:52 +0000 Subject: [PATCH] Wrapped MPI_COMM_WORLD definition around an #ifdef. Trilinos already defines this if we are serial, and we get warnings with multiple definitions. git-svn-id: https://svn.dealii.org/trunk@29937 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/index_set.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/base/index_set.h b/deal.II/include/deal.II/base/index_set.h index f94354eb7a..f2d53a3a23 100644 --- a/deal.II/include/deal.II/base/index_set.h +++ b/deal.II/include/deal.II/base/index_set.h @@ -26,7 +26,9 @@ #include #else typedef int MPI_Comm; -#define MPI_COMM_WORLD 0 +# ifndef MPI_COMM_WORLD +# define MPI_COMM_WORLD 0 +# endif #endif DEAL_II_NAMESPACE_OPEN -- 2.39.5