aboutsummaryrefslogtreecommitdiff
path: root/interface.ccl
diff options
context:
space:
mode:
authorschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2005-08-25 09:43:18 +0000
committerschnetter <schnetter@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8>2005-08-25 09:43:18 +0000
commit88fedc2ff9f70e05fa3757000051b8e48ef0f4d1 (patch)
treed2bc25e970558e79b653e5a3da3c8f3e2ede49d0 /interface.ccl
parent317d6a2c1debc4f3482224ed9e63c6c3cbf10aa1 (diff)
Get the MPI communicator more intelligently: use aliased function
GetMPICommWorld if it is provided, otherwise fall back to using Carpet- and PUGH- specific methods, otherwise use MPI_COMM_WORLD. Don't disable (i.e., re-enable) some assert checks even if NDEBUG is defined. These are cheap checks that check the arguments that are passed in. Otherwise errors would go undetected. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@43 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8
Diffstat (limited to 'interface.ccl')
-rw-r--r--interface.ccl3
1 files changed, 3 insertions, 0 deletions
diff --git a/interface.ccl b/interface.ccl
index 171bc4a..100ed3a 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -5,3 +5,6 @@ IMPLEMENTS: Slab
INCLUDES HEADER: slab.h IN Slab.h
INCLUDES HEADER: slab.inc IN Slab.inc
+
+CCTK_INT FUNCTION GetMPICommWorld (CCTK_POINTER_TO_CONST IN cctkGH)
+USES FUNCTION GetMPICommWorld