summaryrefslogtreecommitdiff
path: root/src/main/Coord.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-07-14 14:11:32 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-07-14 14:11:32 +0000
commit5821d457cee885257472ca46231b8c97709fc2ed (patch)
tree3b8bb77d01b6d345d9c180e6e6bfa7364a490ec4 /src/main/Coord.c
parent5c2c6ebc0df70765eb1a8c619e808267068b7237 (diff)
Added a const qualifier to the 'cGH *' argument of the following functions
(and their default overloadables): - CCTK_SyncGroup - CCTK_EnableGroupCommI / CCTK_DisableGroupCommI - CCTK_EnableGroupStorageI / CCTK_DisableGroupStorageI - CCTK_GroupStorageIncrease / CCTK_GroupStorageDecrease - CCTK_CoordRegisterRange / CCTK_CoordRegisterRangePhysIndex You should also update all driver thorns (eg. PUGH) now. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3274 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Coord.c')
-rw-r--r--src/main/Coord.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/Coord.c b/src/main/Coord.c
index daedaa44..1e9cc6f8 100644
--- a/src/main/Coord.c
+++ b/src/main/Coord.c
@@ -51,7 +51,7 @@ struct Coordprops
struct Coordpropslistcomp
{
- cGH *GH;
+ const cGH *GH;
CCTK_REAL lower; /* Coord of lower range (computational) */
CCTK_REAL upper; /* Coord of upper range (computational) */
@@ -62,7 +62,7 @@ struct Coordpropslistcomp
struct Coordpropslistphysi
{
- cGH *GH;
+ const cGH *GH;
int lower; /* Index of lower range (physical) */
int upper; /* Index of upper range (physical) */
@@ -87,14 +87,14 @@ void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterData)
(int *handle,const int *dir,THREE_FORTSTRING_ARG);
void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterRange)
(int *ierr,
- cGH *GH,
+ const cGH *GH,
const CCTK_REAL *lower,
const CCTK_REAL *upper,
const int *dir,
TWO_FORTSTRING_ARG);
void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterRangePhysIndex)
(int *ierr,
- cGH *GH,
+ const cGH *GH,
const int *lower,
const int *upper,
const int *dir,
@@ -345,7 +345,7 @@ void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterData)
@var GH
@vdesc GH data
- @vtype cGH *
+ @vtype const cGH *
@vio in
@endvar
@var min
@@ -387,7 +387,7 @@ void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterData)
@@*/
-int CCTK_CoordRegisterRange (cGH *GH,
+int CCTK_CoordRegisterRange (const cGH *GH,
CCTK_REAL min,
CCTK_REAL max,
int dir,
@@ -494,7 +494,7 @@ int CCTK_CoordRegisterRange (cGH *GH,
void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterRange)
(int *ierr,
- cGH *GH,
+ const cGH *GH,
const CCTK_REAL *lower,
const CCTK_REAL *upper,
const int *dir,
@@ -519,7 +519,7 @@ void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterRange)
@var GH
@vdesc GH data
- @vtype cGH *
+ @vtype const cGH *
@vio in
@endvar
@var min
@@ -559,7 +559,7 @@ void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterRange)
-5 = memory allocation failed
@endreturndesc
@@*/
-int CCTK_CoordRegisterRangePhysIndex (cGH *GH,
+int CCTK_CoordRegisterRangePhysIndex (const cGH *GH,
int min,
int max,
int dir,
@@ -667,7 +667,7 @@ int CCTK_CoordRegisterRangePhysIndex (cGH *GH,
void CCTK_FCALL CCTK_FNAME (CCTK_CoordRegisterRangePhysIndex)
(int *ierr,
- cGH *GH,
+ const cGH *GH,
const int *lower,
const int *upper,
const int *dir,