aboutsummaryrefslogtreecommitdiff
path: root/src/apply.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apply.c')
-rw-r--r--src/apply.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/apply.c b/src/apply.c
index 20f8993..6170234 100644
--- a/src/apply.c
+++ b/src/apply.c
@@ -591,6 +591,12 @@ ReflectionSymmetry_Apply (CCTK_ARGUMENTS)
CCTK_WARN (0, "Internal error in Boundary_SelectedGVs");
}
+ if (nvars == 0)
+ {
+ /* Nothing to do */
+ return;
+ }
+
indices = malloc (nvars * sizeof *indices);
if (! indices)
{