diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2005-08-25 08:47:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2005-08-25 08:47:00 +0000 |
commit | d21cbeb047f2816c252845fd3b2c1d497a684626 (patch) | |
tree | 2b3a53cbb5ad90fd38a4d7f42e4f2ce433bf847a /Carpet/Carpet/src/variables.hh | |
parent | fb3ace60d7261240317ab3bc8a60955d768c8819 (diff) |
Carpet: Allow multi-model simulations
Split MPI_COMM_WORLD according to a new parameter Carpet::model into
different sets, and evolve these sets independently.
Add aliased functions to query the MPI communicators for this
simulation and for all models.
darcs-hash:20050825084739-891bb-7f102b46ec495f884be5197eaf077eef93f89dac.gz
Diffstat (limited to 'Carpet/Carpet/src/variables.hh')
-rw-r--r-- | Carpet/Carpet/src/variables.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/variables.hh b/Carpet/Carpet/src/variables.hh index 1e5330d80..2d8a6d294 100644 --- a/Carpet/Carpet/src/variables.hh +++ b/Carpet/Carpet/src/variables.hh @@ -14,6 +14,8 @@ #include <vector> +#include <mpi.h> + #include "cctk.h" #include "data.hh" @@ -140,6 +142,12 @@ namespace Carpet { }; extern vector<vector<arrdesc> > arrdata; // [group][map] + + + // MPI Communicators + extern MPI_Comm comm_universe; + extern MPI_Comm comm_world; + } // namespace Carpet #endif // !defined(VARIABLES_HH) |