diff options
Diffstat (limited to 'src/Write.c')
-rw-r--r-- | src/Write.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/Write.c b/src/Write.c index c642b56..d23e3ee 100644 --- a/src/Write.c +++ b/src/Write.c @@ -80,12 +80,6 @@ int IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias) void *hdata; CCTK_REAL min, max; const CCTK_INT htype = CCTK_VARIABLE_REAL; - /*** FIXME: can CCTK_Reduce() have a 'const cGH *' parameter ?? ***/ - union - { - const cGH *const_ptr; - cGH *non_const_ptr; - } GH_fake_const; DECLARE_CCTK_PARAMETERS @@ -115,13 +109,10 @@ int IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias) } else { - GH_fake_const.const_ptr = GH; i = CCTK_ReductionHandle ("minimum"); - CCTK_Reduce (GH_fake_const.non_const_ptr, 0, i, 1, CCTK_VARIABLE_REAL, - &min, 1, vindex); + CCTK_Reduce (GH, 0, i, 1, CCTK_VARIABLE_REAL, &min, 1, vindex); i = CCTK_ReductionHandle ("maximum"); - CCTK_Reduce (GH_fake_const.non_const_ptr, 0, i, 1, CCTK_VARIABLE_REAL, - &max, 1, vindex); + CCTK_Reduce (GH, 0, i, 1, CCTK_VARIABLE_REAL, &max, 1, vindex); } /* get the number of slices to output */ |