aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rotatingsymmetry180.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rotatingsymmetry180.c b/src/rotatingsymmetry180.c
index d28b40e..9cbde1d 100644
--- a/src/rotatingsymmetry180.c
+++ b/src/rotatingsymmetry180.c
@@ -575,6 +575,8 @@ void Rot180_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);