From 1e23e1c112877d7b0f17dbb406ede594b2e46e67 Mon Sep 17 00:00:00 2001
From: Robert K <robertk@posteo.org>
Date: Wed, 5 Aug 2015 12:45:00 +0200
Subject: [PATCH] [bugfix] check if HAVE_MPI was previously set to ENABLE_MPI
 or 1.

---
 dune/alugrid/impl/parallel/aluzoltan.hh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dune/alugrid/impl/parallel/aluzoltan.hh b/dune/alugrid/impl/parallel/aluzoltan.hh
index 9729caf8e..e1d77727f 100644
--- a/dune/alugrid/impl/parallel/aluzoltan.hh
+++ b/dune/alugrid/impl/parallel/aluzoltan.hh
@@ -40,8 +40,12 @@
 #endif
 
 #ifdef HAVE_MPI_WAS_UNDEFED_HERE
+#ifdef ENABLE_MPI
 // redefine our definition of HAVE_MPI if it was undef'd before
 #define HAVE_MPI ENABLE_MPI
+#else
+#define HAVE_MPI 1
+#endif
 #undef HAVE_MPI_WAS_UNDEFED_HERE
 #endif // #ifdef HAVE_MPI_WAS_UNDEFED_HERE
 
-- 
GitLab