diff options
author | schnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5> | 2005-05-27 12:24:48 +0000 |
---|---|---|
committer | schnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5> | 2005-05-27 12:24:48 +0000 |
commit | 8d9b995054c5bba65920d1720e3d80244d45d8e7 (patch) | |
tree | f95fe6aacfca4ec88c1c5782187a5bd3301a992f | |
parent | 05e5b613bac22a6bc1e98054a2c16c98d536fce1 (diff) |
Allow to apply the symmetries to 0 variables. In this case, just
return.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/RotatingSymmetry90/trunk@21 c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5
-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); |