diff options
author | schnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52> | 2005-06-01 19:52:21 +0000 |
---|---|---|
committer | schnetter <schnetter@eec4d7dc-71c2-46d6-addf-10296150bf52> | 2005-06-01 19:52:21 +0000 |
commit | 49ebff9fcba20d579d938f5142903178f22d1387 (patch) | |
tree | 5f4e56743c9a32cb37e2be9812e625f33f58c419 | |
parent | f4b4893fd942d5527c268ee738fc79d7d66bda36 (diff) |
Remove now unnecessary workaround for making cGH pointer not const.
Remove unused variable.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@93 eec4d7dc-71c2-46d6-addf-10296150bf52
-rw-r--r-- | src/Cartoon2DBC.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/Cartoon2DBC.c b/src/Cartoon2DBC.c index be5fb9e..ba995d0 100644 --- a/src/Cartoon2DBC.c +++ b/src/Cartoon2DBC.c @@ -74,12 +74,6 @@ int BndCartoon2DVI(const cGH *cctkGH, int tensortype, int prolongtype, int vi) { DECLARE_CCTK_ARGUMENTS; DECLARE_CCTK_PARAMETERS; - /*** FIXME: can CCTK_SyncGroup() have a 'const cGH *' parameter ?? ***/ - union - { - const cGH *const_ptr; - cGH *non_const_ptr; - } GH_fake_const; char * groupname; @@ -163,11 +157,8 @@ int BndCartoon2DVI(const cGH *cctkGH, int tensortype, int prolongtype, int vi) /* y = 0 */ j = ny/2; - /* this union helps us to avoid compiler warning about discarding - the const qualifier from a pointer target type */ - GH_fake_const.const_ptr = cctkGH; /* make sure that the input data is synced */ - CCTK_SyncGroupI(GH_fake_const.non_const_ptr, gi); + CCTK_SyncGroupI(cctkGH, gi); /* z-direction: include lower and upper boundary */ for (k = 0; k < lnz; k++) @@ -284,11 +275,8 @@ int BndCartoon2DVI(const cGH *cctkGH, int tensortype, int prolongtype, int vi) if (dj == 0) {i -= s; ijk -= s; dj = jj*lnx;} } - /* this union helps us to avoid compiler warning about discarding - the const qualifier from a pointer target type */ - GH_fake_const.const_ptr = cctkGH; /* syncs needed after interpolation (actually only for x direction) */ - CCTK_SyncGroupI(GH_fake_const.non_const_ptr, gi); + CCTK_SyncGroupI(cctkGH, gi); return(0); } @@ -322,7 +310,6 @@ void CCTK_FCALL CCTK_FNAME(BndCartoon2DVN) int BndCartoon2DGN(const cGH *GH, int tensortype, const char *group) { DECLARE_CCTK_PARAMETERS - int n_group; if (verbose && GH->cctk_iteration==1) CCTK_VInfo(CCTK_THORNSTRING,"Cartoon2D called for %s (message appears only once)", group); |