diff options
author | yye00 <yye00@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2004-08-12 22:13:57 +0000 |
---|---|---|
committer | yye00 <yye00@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2004-08-12 22:13:57 +0000 |
commit | d39522a14cc409efd96b2770618e32bbe7a31955 (patch) | |
tree | f14f6ff79f07c3da001c2c07610b090f9233bffa /src | |
parent | 5a040e2ea7b4fbc6b24377d37707324b45a3534c (diff) |
assert fix
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@450 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src')
-rw-r--r-- | src/SetupGroup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/SetupGroup.c b/src/SetupGroup.c index 19b8752..bb0b640 100644 --- a/src/SetupGroup.c +++ b/src/SetupGroup.c @@ -8,7 +8,7 @@ @version $Id$ @@*/ -#include <assert.h> + #include <stdlib.h> #include <string.h> @@ -164,7 +164,8 @@ static int PUGH_SetupGAGroup (pGH *newGH, else { /* this is for CCTK_GF variables */ - assert (dim > 0); + if (dim <= 0) + CCTK_VWarn (0, __LINE__, __FILE__, "PUGH", "Dimension in function PUGH_SetupGAGroup is less than or equal to zero" ); connectivity = newGH->Connectivity[dim-1]; extras = newGH->GFExtras[dim-1]; } |