aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp2/src/fasterp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetInterp2/src/fasterp.cc')
-rw-r--r--Carpet/CarpetInterp2/src/fasterp.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/Carpet/CarpetInterp2/src/fasterp.cc b/Carpet/CarpetInterp2/src/fasterp.cc
index 6f42fe2b3..249676636 100644
--- a/Carpet/CarpetInterp2/src/fasterp.cc
+++ b/Carpet/CarpetInterp2/src/fasterp.cc
@@ -1,3 +1,6 @@
+#include <cctk.h>
+#include <cctk_Parameters.h>
+
#include <algorithm>
#include <cassert>
#include <cmath>
@@ -6,10 +9,11 @@
#include <iostream>
#include <sstream>
-#include <cctk.h>
-#include <cctk_Parameters.h>
-
-#include <mpi.h>
+#ifdef CCTK_MPI
+# include <mpi.h>
+#else
+# include "nompi.h"
+#endif
#include <carpet.hh>
#include <vect.hh>