aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2003-03-10 11:07:23 +0000
committertradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2003-03-10 11:07:23 +0000
commit2fe1c2f35ebeb8e374e1938671267f24f7d529d9 (patch)
tree343a52baa647a3c423033baa6636a0d4e08bdfd7 /src
parent4c3d677af5f32c64e055fe1705239dbe73c05a9c (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
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 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,