aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/variables.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-08-26 14:45:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-08-26 14:45:00 +0000
commitd6849480613bc591e9eb63ff896331eef12eec90 (patch)
treed6eacfd3c6c156b24e4878bab65940986e99cd0d /Carpet/Carpet/src/variables.cc
parented0dc00bca80c9a29ee27208cc5ce36ff2709b92 (diff)
Carpet: Pass MPI communicators as pointers instead of ints
Pass MPI communicators as pointers instead of ints because they may not be implemented as ints. Use MPI_COMM_NULL instead of -1 as illegal communicator. darcs-hash:20050826144511-891bb-324a5d22efcbbd53cac35899e30559b06cfdfdb6.gz
Diffstat (limited to 'Carpet/Carpet/src/variables.cc')
-rw-r--r--Carpet/Carpet/src/variables.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/variables.cc b/Carpet/Carpet/src/variables.cc
index 71520920c..fdd499419 100644
--- a/Carpet/Carpet/src/variables.cc
+++ b/Carpet/Carpet/src/variables.cc
@@ -105,7 +105,7 @@ namespace Carpet {
// MPI Communicators
- MPI_Comm comm_universe = -1;
- MPI_Comm comm_world = -1;
+ MPI_Comm comm_universe = MPI_COMM_NULL;
+ MPI_Comm comm_world = MPI_COMM_NULL;
} // namespace Carpet