diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-12-03 16:08:37 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:25:45 +0000 |
commit | 4dce60fb1b31caf04f5c82810f50c85a2a8b5d6e (patch) | |
tree | 6e03608eca03d748c5af652cebe33e81228f742f /Carpet/CarpetLib/src/commstate.hh | |
parent | 57c86f33d361e6023334ae0dfb92db009983d0de (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.hh | 11 |
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" |