aboutsummaryrefslogtreecommitdiff
path: root/src/GetHyperslab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/GetHyperslab.c')
-rw-r--r--src/GetHyperslab.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/GetHyperslab.c b/src/GetHyperslab.c
index f0ec33c..7ee108e 100644
--- a/src/GetHyperslab.c
+++ b/src/GetHyperslab.c
@@ -57,7 +57,7 @@ static void SortIntoUnchunkedHyperslab (const hslab_mapping_t *mapping,
#endif
-CCTK_INT PUGHSlab_Get (const cGH *GH,
+CCTK_INT PUGHSlab_Get (CCTK_POINTER_TO_CONST _GH,
CCTK_INT mapping_handle,
CCTK_INT proc,
CCTK_INT vindex,
@@ -66,6 +66,8 @@ CCTK_INT PUGHSlab_Get (const cGH *GH,
void *hdata)
{
CCTK_INT retval;
+ const cGH *GH = _GH;
+
retval = PUGHSlab_GetList (GH, mapping_handle, 1, &proc, &vindex, &timelevel,
hdatatype >= 0 ? &hdatatype : NULL, &hdata, NULL);
@@ -74,20 +76,21 @@ CCTK_INT PUGHSlab_Get (const cGH *GH,
}
-CCTK_INT PUGHSlab_GetList (const cGH *GH,
+CCTK_INT PUGHSlab_GetList (CCTK_POINTER_TO_CONST _GH,
CCTK_INT mapping_handle,
CCTK_INT num_arrays,
const CCTK_INT *procs /* num_arrays */,
const CCTK_INT *vindices /* num_arrays */,
const CCTK_INT *timelevels /* num_arrays */,
const CCTK_INT *hdatatypes /* num_arrays */,
- void *const *hdata /* num_arrays */,
+ const CCTK_POINTER *hdata /* num_arrays */,
CCTK_INT *retvals /* num_arrays */)
{
int i, timelevel, hdatatype, hdata_size, retval;
CCTK_INT result, *result_ptr;
hslab_mapping_t *mapping;
void *local_hdata;
+ const cGH *GH = _GH;
#ifdef CCTK_MPI
int myproc, nprocs, proc;
MPI_Comm comm;