From ba159d1723e850738b557e2207f9bb0139d87191 Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 10 Mar 2003 11:07:23 +0000 Subject: 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/IOFlexIO/trunk@275 ebee0441-1374-4afa-a3b5-247f3ba15b9a --- src/DumpVar.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') 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, -- cgit v1.2.3