From 819d64ba2958b154d845407b56323d2624122488 Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 14 Jul 2003 14:12:49 +0000 Subject: Added a const qualifier to the 'cGH *' argument of PUGH functions which overload the following flesh routines: - CCTK_SyncGroup - CCTK_EnableGroupCommI / CCTK_DisableGroupCommI - CCTK_EnableGroupStorageI / CCTK_DisableGroupStorageI - CCTK_GroupStorageIncrease / CCTK_GroupStorageDecrease You will also need to update the flesh now. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@414 b61c5cb5-eaca-4651-9a7a-d64986f99364 --- src/Comm.c | 12 ++++++------ src/Storage.c | 16 ++++++++-------- src/pugh_Comm.h | 14 +++++++------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/Comm.c b/src/Comm.c index e23c515..b37331c 100644 --- a/src/Comm.c +++ b/src/Comm.c @@ -46,7 +46,7 @@ static int PUGH_SyncSingleProc(pGH *pughGH, pComm *comm); @var GH @vdesc Pointer to CCTK grid hierarchy - @vtype cGH * + @vtype const cGH * @vio in @endvar @var groupname @@ -63,7 +63,7 @@ static int PUGH_SyncSingleProc(pGH *pughGH, pComm *comm); -1 for an unknown group or group type @endreturndesc @@*/ -int PUGH_SyncGroup(cGH *GH, const char *groupname) +int PUGH_SyncGroup(const cGH *GH, const char *groupname) { cGroup pgroup; int group, retval; @@ -119,7 +119,7 @@ int PUGH_SyncGroup(cGH *GH, const char *groupname) @var GH @vdesc Pointer to CCTK grid hierarchy - @vtype cGH * + @vtype const cGH * @vio in @endvar @var groupname @@ -136,7 +136,7 @@ int PUGH_SyncGroup(cGH *GH, const char *groupname) -1 for an unknown group type @endreturndesc @@*/ -int PUGH_EnableGroupComm(cGH *GH, const char *groupname) +int PUGH_EnableGroupComm(const cGH *GH, const char *groupname) { int group, retval; cGroup pgroup; @@ -183,7 +183,7 @@ int PUGH_EnableGroupComm(cGH *GH, const char *groupname) @var GH @vdesc Pointer to CCTK grid hierarchy - @vtype cGH * + @vtype const cGH * @vio in @endvar @var groupname @@ -200,7 +200,7 @@ int PUGH_EnableGroupComm(cGH *GH, const char *groupname) -1 for an unknown group type @endreturndesc @@*/ -int PUGH_DisableGroupComm(cGH *GH, const char *groupname) +int PUGH_DisableGroupComm(const cGH *GH, const char *groupname) { int group, first_var, retval; cGroup pgroup; diff --git a/src/Storage.c b/src/Storage.c index d431a2b..2970a79 100644 --- a/src/Storage.c +++ b/src/Storage.c @@ -307,7 +307,7 @@ int PUGH_QueryGroupStorage (const cGH *GH, int group, const char *groupname) @var GH @vdesc Pointer to CCTK grid hierarchy - @vtype cGH * + @vtype const cGH * @vio in @endvar @var groupname @@ -327,7 +327,7 @@ int PUGH_QueryGroupStorage (const cGH *GH, int group, const char *groupname) -3 if invalid groupname was given @endreturndesc @@*/ -int PUGH_EnableGroupStorage (cGH *GH, const char *groupname) +int PUGH_EnableGroupStorage (const cGH *GH, const char *groupname) { DECLARE_CCTK_PARAMETERS int group; /* group index */ @@ -441,7 +441,7 @@ int PUGH_EnableGroupStorage (cGH *GH, const char *groupname) @var GH @vdesc Pointer to CCTK grid hierarchy - @vtype cGH * + @vtype const cGH * @vio in @endvar @var groupname @@ -456,7 +456,7 @@ int PUGH_EnableGroupStorage (cGH *GH, const char *groupname) -1 if group type is invalid @endreturndesc @@*/ -int PUGH_DisableGroupStorage (cGH *GH, const char *groupname) +int PUGH_DisableGroupStorage (const cGH *GH, const char *groupname) { DECLARE_CCTK_PARAMETERS int group; /* group index */ @@ -1076,7 +1076,7 @@ void PUGHi_PrintStorageReport () @var GH @vdesc Pointer to CCTK grid hierarchy - @vtype cGH * + @vtype const cGH * @vio inout @vcomment A driver should replace the appropriate GV pointers on this @@ -1116,7 +1116,7 @@ void PUGHi_PrintStorageReport () modified. @endreturndesc @@*/ -int PUGH_GroupStorageIncrease(cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status) +int PUGH_GroupStorageIncrease(const cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status) { int retval; int group; @@ -1203,7 +1203,7 @@ int PUGH_GroupStorageIncrease(cGH *GH, int n_groups,const int *groups,const int @var GH @vdesc Pointer to CCTK grid hierarchy - @vtype cGH * + @vtype const cGH * @vio inout @vcomment A driver should replace the appropriate GV pointers on this @@ -1243,7 +1243,7 @@ int PUGH_GroupStorageIncrease(cGH *GH, int n_groups,const int *groups,const int modified. @endreturndesc @@*/ -int PUGH_GroupStorageDecrease(cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status) +int PUGH_GroupStorageDecrease(const cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status) { int retval; int group; diff --git a/src/pugh_Comm.h b/src/pugh_Comm.h index d4d01cd..0c02e43 100644 --- a/src/pugh_Comm.h +++ b/src/pugh_Comm.h @@ -17,16 +17,16 @@ extern "C" #endif int PUGH_Barrier (const cGH *GH); -int PUGH_SyncGroup (cGH *GH, const char *group); +int PUGH_SyncGroup (const cGH *GH, const char *group); -int PUGH_EnableGroupStorage (cGH *GH, const char *group); -int PUGH_DisableGroupStorage (cGH *GH, const char *group); +int PUGH_EnableGroupStorage (const cGH *GH, const char *group); +int PUGH_DisableGroupStorage (const cGH *GH, const char *group); -int PUGH_GroupStorageIncrease(cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status); -int PUGH_GroupStorageDecrease(cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status); +int PUGH_GroupStorageIncrease(const cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status); +int PUGH_GroupStorageDecrease(const cGH *GH, int n_groups,const int *groups,const int *timelevels, int *status); -int PUGH_EnableGroupComm (cGH *GH, const char *group); -int PUGH_DisableGroupComm (cGH *GH, const char *group); +int PUGH_EnableGroupComm (const cGH *GH, const char *group); +int PUGH_DisableGroupComm (const cGH *GH, const char *group); float PUGH_ReturnTotalStorage(void); float PUGH_ReturnMaxStorage(void); -- cgit v1.2.3