aboutsummaryrefslogtreecommitdiff
path: root/src/interpolate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interpolate.c')
-rw-r--r--src/interpolate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interpolate.c b/src/interpolate.c
index 80a11c1..30a18f8 100644
--- a/src/interpolate.c
+++ b/src/interpolate.c
@@ -455,7 +455,7 @@ Rot90_SymmetryInterpolate (CCTK_POINTER_TO_CONST const cctkGH_,
/* Copy coordinates */
for (d=0; d<DIM; ++d) {
new_interp_coords[d] = malloc (N_interp_points * sizeof(CCTK_REAL));
- assert (new_interp_coords[d]);
+ assert (N_interp_points == 0 || new_interp_coords[d]);
}
/* Fold coordinates */
@@ -487,7 +487,7 @@ Rot90_SymmetryInterpolate (CCTK_POINTER_TO_CONST const cctkGH_,
assert (new_output_arrays);
for (m=0; m<N_output_arrays; ++m) {
new_output_arrays[m] = malloc (N_interp_points * sizeof(CCTK_REAL));
- assert (new_output_arrays[m]);
+ assert (N_interp_points == 0 || new_output_arrays[m]);
}