aboutsummaryrefslogtreecommitdiff
path: root/src/Mapping.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mapping.c')
-rw-r--r--src/Mapping.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Mapping.c b/src/Mapping.c
index 5bb1d76..bd6efdf 100644
--- a/src/Mapping.c
+++ b/src/Mapping.c
@@ -69,7 +69,7 @@ static int IsFullHyperslab (const pGA *GA,
const hslab_mapping_t *mapping);
-CCTK_INT PUGHSlab_DefineLocalMappingByIndex (const cGH *GH,
+CCTK_INT PUGHSlab_DefineLocalMappingByIndex (CCTK_POINTER_TO_CONST _GH,
CCTK_INT vindex,
CCTK_INT hdim,
const CCTK_INT *direction,
@@ -83,6 +83,7 @@ CCTK_INT PUGHSlab_DefineLocalMappingByIndex (const cGH *GH,
CCTK_INT *hoffset_global)
{
CCTK_INT retval;
+ const cGH *GH = _GH;
retval = DefineMapping (GH, vindex, hdim, direction, origin, extent,
@@ -92,7 +93,7 @@ CCTK_INT PUGHSlab_DefineLocalMappingByIndex (const cGH *GH,
}
-CCTK_INT PUGHSlab_DefineGlobalMappingByIndex (const cGH *GH,
+CCTK_INT PUGHSlab_DefineGlobalMappingByIndex (CCTK_POINTER_TO_CONST _GH,
CCTK_INT vindex,
CCTK_INT hdim,
const CCTK_INT *direction,
@@ -104,6 +105,7 @@ CCTK_INT PUGHSlab_DefineGlobalMappingByIndex (const cGH *GH,
CCTK_INT *hsize)
{
CCTK_INT retval;
+ const cGH *GH = _GH;
retval = DefineMapping (GH, vindex, hdim, direction, origin, extent,