From 8d9b995054c5bba65920d1720e3d80244d45d8e7 Mon Sep 17 00:00:00 2001 From: schnetter Date: Fri, 27 May 2005 12:24:48 +0000 Subject: 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 --- src/rotatingsymmetry90.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3