aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5>2005-05-27 12:24:48 +0000
committerschnetter <schnetter@c3c03602-0f4f-0410-b3fa-d2c81c8a7dc5>2005-05-27 12:24:48 +0000
commit8d9b995054c5bba65920d1720e3d80244d45d8e7 (patch)
treef95fe6aacfca4ec88c1c5782187a5bd3301a992f
parent05e5b613bac22a6bc1e98054a2c16c98d536fce1 (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.c3
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);