diff options
Diffstat (limited to 'src/rotatingsymmetry90.c')
-rw-r--r-- | src/rotatingsymmetry90.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rotatingsymmetry90.c b/src/rotatingsymmetry90.c index e797cac..e71c643 100644 --- a/src/rotatingsymmetry90.c +++ b/src/rotatingsymmetry90.c @@ -120,6 +120,9 @@ int BndRot90VI (cGH const * restrict const cctkGH, } } + /* Return early if there is nothing to do */ + if (nvars == 0) return 0; + /* Get and check group info */ assert (nvars>0); gis = malloc (nvars * sizeof *gis); |