diff options
Diffstat (limited to 'src/rotatingsymmetry180.c')
-rw-r--r-- | src/rotatingsymmetry180.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rotatingsymmetry180.c b/src/rotatingsymmetry180.c index fdb69e9..d28b40e 100644 --- a/src/rotatingsymmetry180.c +++ b/src/rotatingsymmetry180.c @@ -334,6 +334,8 @@ int BndRot180VI (cGH const * restrict const cctkGH, } if (iorigin[dir] != data.nghostzones[dir]) { + assert (nvars > 0); + var = 0; CCTK_VWarn (0, __LINE__, __FILE__, CCTK_THORNSTRING, "The group \"%s\" has in the %c-direction %d symmetry points (grid points outside of the symmetry boundary). " "This is not equal to the number of ghost zones, which is %d. " @@ -344,6 +346,7 @@ int BndRot180VI (cGH const * restrict const cctkGH, if (data.gsh[dir] < 2*data.nghostzones[dir] + offset[dir]) { assert (nvars > 0); + var = 0; CCTK_VWarn (0, __LINE__, __FILE__, CCTK_THORNSTRING, "The group \"%s\" has in the %c-direction only %d grid points. " "This is not large enough for a 180 degree rotating symmetry boundary that is %d grid points wide. " |