From c40c422692bc788f6746358598ff67a82a9a806c Mon Sep 17 00:00:00 2001 From: hawke Date: Tue, 22 Jun 2004 13:18:36 +0000 Subject: Remove a few conflicts and memory errors. git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/ReflectionSymmetry/trunk@3 082bdb00-0f4f-0410-b49e-b1835e5f2039 --- src/interpolate.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/interpolate.c') diff --git a/src/interpolate.c b/src/interpolate.c index 8591fd7..cb58ba9 100644 --- a/src/interpolate.c +++ b/src/interpolate.c @@ -87,8 +87,8 @@ ReflectionSymmetry_Interpolate (CCTK_POINTER_TO_CONST restrict const cctkGH_, if (do_reflection[2*dir]) { new_interp_coords[dir] - = malloc (N_interp_points * sizeof *new_interp_coords[dir]); - assert (new_interp_coords[d]); + = malloc (N_interp_points * sizeof (CCTK_REAL)); + assert (new_interp_coords[dir]); for (n=0; n0); firstvar = CCTK_FirstVarIndexI(gi); assert (firstvar>=0); - + table = CCTK_GroupTagsTableI(gi); + assert (table>=0); + /* Get and check tensor type information */ @@ -314,8 +316,8 @@ ReflectionSymmetry_Interpolate (CCTK_POINTER_TO_CONST restrict const cctkGH_, needs_checking = 0; for (dir=0; dir<3; ++dir) { - check_dir[d] = do_reflection[2*dir] && parities[dir] < 0; - needs_checking |= check_dir[d]; + check_dir[dir] = do_reflection[2*dir] && parities[dir] < 0; + needs_checking |= check_dir[dir]; } -- cgit v1.2.3