diff options
Diffstat (limited to 'src/interpolate.c')
-rw-r--r-- | src/interpolate.c | 12 |
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]; } |