diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2003-03-10 11:07:23 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2003-03-10 11:07:23 +0000 |
commit | ba159d1723e850738b557e2207f9bb0139d87191 (patch) | |
tree | 542e4524e7ca78e64b3f2e2c22ae48e911079bf9 /src | |
parent | 4aa70d006d878c9e8d329a830e562564464bcac3 (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/IOFlexIO/trunk@275 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src')
-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 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, |