aboutsummaryrefslogtreecommitdiff
path: root/src/rotatingsymmetry90.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rotatingsymmetry90.c')
-rw-r--r--src/rotatingsymmetry90.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rotatingsymmetry90.c b/src/rotatingsymmetry90.c
index 8e89689..51150c4 100644
--- a/src/rotatingsymmetry90.c
+++ b/src/rotatingsymmetry90.c
@@ -594,6 +594,8 @@ void Rot90_ApplyBC (CCTK_ARGUMENTS)
nvars = Boundary_SelectedGVs (cctkGH, 0, 0, 0, 0, 0, 0);
assert (nvars>=0);
+ if (nvars==0) return;
+
indices = malloc (nvars * sizeof *indices);
assert (indices);
faces = malloc (nvars * sizeof *faces);