diff options
author | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-07-21 10:35:11 +0000 |
---|---|---|
committer | eschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2012-07-21 10:35:11 +0000 |
commit | 1a381dc3c09bee6d5a6e4845e5e19ebf08260968 (patch) | |
tree | 90ca5abe727e28fe338ea6d7d404ede2ce9a714e /src/main | |
parent | 3aa8a812527b1b9a18146a6fa9ee5ff66557838c (diff) |
Move MPI support from flesh to a thorn
Move MPI support from flesh to thorn ExternalLibraries/MPI. This also
requires thorns that call MPI directly to declare this in their
configuration.ccl. Existing configurations using MPI need to include
ExternalLibraries/MPI into their thorn list.
* Declare that the flesh optionally uses MPI (because it needs to call
MPI_Init)
* Update test case mechanism to find out whether MPI is used
* Handle configuration bindings for flesh
* Don't special-case Crays any more when configuring Linux
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4847 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/ProcessEnvironment.c | 3 | ||||
-rw-r--r-- | src/main/ShutdownCactus.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/main/ProcessEnvironment.c b/src/main/ProcessEnvironment.c index 64be6f14..97ec4e2e 100644 --- a/src/main/ProcessEnvironment.c +++ b/src/main/ProcessEnvironment.c @@ -11,10 +11,11 @@ #include <stdio.h> #include <stdlib.h> +#include "cctk_Capabilities.h" #include "cctk_Flesh.h" #ifdef CCTK_MPI -#include "mpi.h" +# include <mpi.h> #endif static const char *rcsid = "$Header$"; diff --git a/src/main/ShutdownCactus.c b/src/main/ShutdownCactus.c index 1e61224c..df7a347e 100644 --- a/src/main/ShutdownCactus.c +++ b/src/main/ShutdownCactus.c @@ -13,13 +13,14 @@ #include <stdio.h> #include <stdlib.h> +#include "cctk_Capabilities.h" #include "cctk_Flesh.h" #include "cctk_Misc.h" #include "cctk_Parameters.h" #include "cctk_Schedule.h" #ifdef CCTK_MPI -#include "mpi.h" +# include "mpi.h" #endif static const char *rcsid = "$Header$"; |