aboutsummaryrefslogtreecommitdiff
path: root/src/interpolate.c
diff options
context:
space:
mode:
authorhawke <hawke@082bdb00-0f4f-0410-b49e-b1835e5f2039>2004-06-22 13:18:36 +0000
committerhawke <hawke@082bdb00-0f4f-0410-b49e-b1835e5f2039>2004-06-22 13:18:36 +0000
commitc40c422692bc788f6746358598ff67a82a9a806c (patch)
treea74cf32f70e0d8763c7cc2a2877f1a2fc689b4b9 /src/interpolate.c
parentd02895af18ae9c3673202d6231da078cb3d74bac (diff)
Remove a few conflicts and memory errors.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/ReflectionSymmetry/trunk@3 082bdb00-0f4f-0410-b49e-b1835e5f2039
Diffstat (limited to 'src/interpolate.c')
-rw-r--r--src/interpolate.c12
1 files changed, 7 insertions, 5 deletions
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; n<N_interp_points; ++n)
{
@@ -193,7 +193,9 @@ ReflectionSymmetry_Interpolate (CCTK_POINTER_TO_CONST restrict const cctkGH_,
assert (numvars>0);
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];
}