diff options
Diffstat (limited to 'src/CoordBase.c')
-rw-r--r-- | src/CoordBase.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/CoordBase.c b/src/CoordBase.c index c53837a..c73f438 100644 --- a/src/CoordBase.c +++ b/src/CoordBase.c @@ -10,7 +10,7 @@ #include <string.h> #include <stdlib.h> -#include <assert.h> + #include "cctk.h" #include "util_Table.h" @@ -552,7 +552,8 @@ CCTK_INT CoordBase_GroupSystem(CCTK_POINTER_TO_CONST GH, /* Check for a default for all GF variables of this dimension */ gindex = CCTK_GroupIndex(groupname); - assert(gindex>=0); + if(gindex<0) + CCTK_VWarn ( 0, __LINE__, __FILE__, "CoordBase", "group index is out of bounds"); if (system_handle == -9999 && CCTK_GroupTypeI(gindex) == CCTK_GF) { GHex = CCTK_GHExtension(GH,"CoordBase"); |