aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/commstate.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2010-12-03 16:08:37 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 18:25:45 +0000
commit4dce60fb1b31caf04f5c82810f50c85a2a8b5d6e (patch)
tree6e03608eca03d748c5af652cebe33e81228f742f /Carpet/CarpetLib/src/commstate.hh
parent57c86f33d361e6023334ae0dfb92db009983d0de (diff)
CarpetLib: Use thorn NoMPI to be able to run without MPI
Thorn LSUThorns/NoMPI provides a fake MPI implementation that runs only on a single processor if no real MPI implementation is found.
Diffstat (limited to 'Carpet/CarpetLib/src/commstate.hh')
-rw-r--r--Carpet/CarpetLib/src/commstate.hh11
1 files changed, 8 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/commstate.hh b/Carpet/CarpetLib/src/commstate.hh
index e59ce7cb4..773949356 100644
--- a/Carpet/CarpetLib/src/commstate.hh
+++ b/Carpet/CarpetLib/src/commstate.hh
@@ -1,13 +1,18 @@
#ifndef COMMSTATE_HH
#define COMMSTATE_HH
+#include <cctk.h>
+#include <cctk_Parameters.h>
+
#include <cstdlib>
#include <iostream>
#include <vector>
-#include <mpi.h>
-
-#include "cctk_Parameters.h"
+#ifdef CCTK_MPI
+# include <mpi.h>
+#else
+# include "nompi.h"
+#endif
#include "dist.hh"
#include "timestat.hh"