diff options
author | tradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668> | 2003-03-10 11:07:23 +0000 |
---|---|---|
committer | tradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668> | 2003-03-10 11:07:23 +0000 |
commit | 2fe1c2f35ebeb8e374e1938671267f24f7d529d9 (patch) | |
tree | 343a52baa647a3c423033baa6636a0d4e08bdfd7 | |
parent | 4c3d677af5f32c64e055fe1705239dbe73c05a9c (diff) |
Removed an ugly artefact where a union was used to convert a 'const cGH*'
pointer into 'cGH *' which was required by the old flesh's reduction API.
This API has been fixed now. You need to update the flesh for this.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@85 7842ec3a-9562-4be5-9c5b-06ba18f2b668
-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, |