aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/CarpetInterp/interface.ccl2
-rw-r--r--Carpet/CarpetInterp/src/interp.cc17
2 files changed, 12 insertions, 7 deletions
diff --git a/Carpet/CarpetInterp/interface.ccl b/Carpet/CarpetInterp/interface.ccl
index 85d5f38b0..4213b5198 100644
--- a/Carpet/CarpetInterp/interface.ccl
+++ b/Carpet/CarpetInterp/interface.ccl
@@ -2,6 +2,8 @@
IMPLEMENTS: interp
+uses include header: nompi.h
+
uses include header: data.hh
uses include header: bbox.hh
uses include header: data.hh
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc
index 065dd87cd..bbeeb7558 100644
--- a/Carpet/CarpetInterp/src/interp.cc
+++ b/Carpet/CarpetInterp/src/interp.cc
@@ -1,3 +1,8 @@
+#include <cctk.h>
+#include <cctk_Parameters.h>
+#include <util_ErrorCodes.h>
+#include <util_Table.h>
+
#include <algorithm>
#include <cassert>
#include <cmath>
@@ -7,13 +12,11 @@
#include <map>
#include <vector>
-#include <mpi.h>
-
-#include "cctk.h"
-#include "cctk_Parameters.h"
-
-#include "util_ErrorCodes.h"
-#include "util_Table.h"
+#ifdef CCTK_MPI
+# include <mpi.h>
+#else
+# include "nompi.h"
+#endif
#include "bbox.hh"
#include "data.hh"