summaryrefslogtreecommitdiff
path: root/src/comm/CactusDefaultComm.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-10-31 11:45:32 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-10-31 11:45:32 +0000
commit28ab879d84925c53cc97fff3d546ad9e28ba9bde (patch)
treef1d15f5b0d90f8c95bc06a66991fe42681d44373 /src/comm/CactusDefaultComm.c
parentc9080e678b4854181e65d681d3459310d543f0d3 (diff)
CCTK_MyProc(), CCTK_nProcs(), CCTK_Barrier() and their Cactus default
overloadables take a 'const cGH *' argument now. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2443 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/comm/CactusDefaultComm.c')
-rw-r--r--src/comm/CactusDefaultComm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/comm/CactusDefaultComm.c b/src/comm/CactusDefaultComm.c
index 51aa97de..d295af49 100644
--- a/src/comm/CactusDefaultComm.c
+++ b/src/comm/CactusDefaultComm.c
@@ -67,11 +67,11 @@ extern char MPI_Active;
********************* External Routines **********************
********************************************************************/
cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level);
-int CactusDefaultMyProc(cGH *GH);
-int CactusDefaultnProcs(cGH *GH);
+int CactusDefaultMyProc(const cGH *GH);
+int CactusDefaultnProcs(const cGH *GH);
int CactusDefaultExit(cGH *GH, int retval);
int CactusDefaultAbort(cGH *GH, int retval);
-int CactusDefaultBarrier(cGH *GH);
+int CactusDefaultBarrier(const cGH *GH);
/*@@
@@ -228,7 +228,7 @@ cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level)
@var GH
@vdesc Pointer to CCTK grid hierarchy
- @vtype cGH *
+ @vtype const cGH *
@vio unused
@endvar
@@ -237,7 +237,7 @@ cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level)
the processor number of the caller
@endreturndesc
@@*/
-int CactusDefaultMyProc (cGH *GH)
+int CactusDefaultMyProc (const cGH *GH)
{
int myproc;
@@ -269,7 +269,7 @@ int CactusDefaultMyProc (cGH *GH)
@var GH
@vdesc Pointer to CCTK grid hierarchy
- @vtype cGH *
+ @vtype const cGH *
@vio unused
@endvar
@@ -278,7 +278,7 @@ int CactusDefaultMyProc (cGH *GH)
the total number of processors
@endreturndesc
@@*/
-int CactusDefaultnProcs (cGH *GH)
+int CactusDefaultnProcs (const cGH *GH)
{
int nprocs;
@@ -409,7 +409,7 @@ int CactusDefaultAbort (cGH *GH, int retval)
@var GH
@vdesc Pointer to CCTK grid hierarchy
- @vtype cGH *
+ @vtype const cGH *
@vio unused
@endvar
@@ -418,7 +418,7 @@ int CactusDefaultAbort (cGH *GH, int retval)
0 for success
@endreturndesc
@@*/
-int CactusDefaultBarrier (cGH *GH)
+int CactusDefaultBarrier (const cGH *GH)
{
/* avoid compiler warning about unused parameter */
GH = GH;