diff options
author | yye00 <yye00@0337457d-221f-4ee6-a5f0-14255d5370d8> | 2004-08-12 22:10:01 +0000 |
---|---|---|
committer | yye00 <yye00@0337457d-221f-4ee6-a5f0-14255d5370d8> | 2004-08-12 22:10:01 +0000 |
commit | 1e40450c3dd3ee7d6a13bfbb6adb595eb09eba1c (patch) | |
tree | 7c45c10e01426ecfdeedd15f47f2220bdd5ff1f9 /src/CoordBase.c | |
parent | 7fa05348da5b4413624195108003ab38d0e12887 (diff) |
assert fix
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/CoordBase/trunk@20 0337457d-221f-4ee6-a5f0-14255d5370d8
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"); |