From d39522a14cc409efd96b2770618e32bbe7a31955 Mon Sep 17 00:00:00 2001 From: yye00 Date: Thu, 12 Aug 2004 22:13:57 +0000 Subject: assert fix git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@450 b61c5cb5-eaca-4651-9a7a-d64986f99364 --- src/SetupGroup.c | 5 +++-- 1 file 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 + #include #include @@ -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]; } -- cgit v1.2.3