aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/helpers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/helpers.cc')
-rw-r--r--Carpet/Carpet/src/helpers.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/Carpet/Carpet/src/helpers.cc b/Carpet/Carpet/src/helpers.cc
index a5140f7f9..88691e86f 100644
--- a/Carpet/Carpet/src/helpers.cc
+++ b/Carpet/Carpet/src/helpers.cc
@@ -49,18 +49,18 @@ namespace Carpet {
// Multi-Model
- CCTK_INT
+ CCTK_POINTER_TO_CONST
Carpet_GetMPICommUniverse (CCTK_POINTER_TO_CONST const cctkGH)
{
- assert (comm_universe >= 0);
- return comm_universe;
+ assert (comm_universe != MPI_COMM_NULL);
+ return & comm_universe;
}
- CCTK_INT
+ CCTK_POINTER_TO_CONST
Carpet_GetMPICommWorld (CCTK_POINTER_TO_CONST const cctkGH)
{
- assert (comm_world >= 0);
- return comm_world;
+ assert (comm_world != MPI_COMM_NULL);
+ return & comm_world;
}