aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-12-03 16:22:27 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 18:25:49 +0000
commit591b29e88d1ab21dda9b0d83c9815bcddd6606fb (patch)
tree2162cb187caf9f8d48e33509ccb8cd87bc9ab890 /Carpet/CarpetInterp
parent69f2889efbc84f03addcf716893f0b9270b9abfd (diff)
CarpetInterp: Use thorn NoMPI
Diffstat (limited to 'Carpet/CarpetInterp')
-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"