diff options
Diffstat (limited to 'src/DumpVar.c')
-rw-r--r-- | src/DumpVar.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index 3284852..4da072e 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -179,12 +179,6 @@ static int WriteGS (const cGH *GH, const ioRequest *request, const char *name, const ioGH *ioUtilGH; const ioHDF5UtilGH *myGH; hid_t dataset, hdf5type; - /*** FIXME: can CCTK_Reduce() have a 'const cGH *' parameter ?? ***/ - union - { - const cGH *const_ptr; - cGH *non_const_ptr; - } fakeGH; ioUtilGH = (const ioGH *) CCTK_GHExtension (GH, "IO"); @@ -199,8 +193,7 @@ static int WriteGS (const cGH *GH, const ioRequest *request, const char *name, hdatatypesize); i = CCTK_ReductionHandle ("sum"); - fakeGH.const_ptr = GH; - if (CCTK_ReduceArray (fakeGH.non_const_ptr, -1, i, nprocs, request->hdatatype, + if (CCTK_ReduceArray (GH, -1, i, nprocs, request->hdatatype, buffer, 1, 1, request->hdatatype, nprocs, buffer)) { CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, |