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.cc | |
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.cc')
-rw-r--r-- | Carpet/Carpet/src/variables.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/variables.cc b/Carpet/Carpet/src/variables.cc index 8b26a38e7..71520920c 100644 --- a/Carpet/Carpet/src/variables.cc +++ b/Carpet/Carpet/src/variables.cc @@ -102,4 +102,10 @@ namespace Carpet { // Data for everything vector<vector<arrdesc> > arrdata; // [group][map] + + + // MPI Communicators + MPI_Comm comm_universe = -1; + MPI_Comm comm_world = -1; + } // namespace Carpet |