aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DumpVar.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c
index 8c29137..117bf5f 100644
--- a/src/DumpVar.c
+++ b/src/DumpVar.c
@@ -209,12 +209,6 @@ static int WriteGS (const cGH *GH, const ioRequest *request, IOFile file)
char *buffer, *fullname;
/* const */ int dim = 1;
const ioGH *ioUtilGH;
- /*** FIXME: can CCTK_Reduce() have a 'const cGH *' parameter ?? ***/
- union
- {
- const cGH *const_ptr;
- cGH *non_const_ptr;
- } fakeGH;
ioUtilGH = CCTK_GHExtension (GH, "IO");
@@ -229,8 +223,7 @@ static int WriteGS (const cGH *GH, const ioRequest *request, IOFile file)
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,