diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-01-15 16:01:40 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-01-15 16:01:40 +0000 |
commit | 558a9c363187881d367c90d7d60adaf2db05d60c (patch) | |
tree | d93630a1e98f7cb02cb5a06e5f9f739c591773d2 /src/main/ConfigData.c | |
parent | 0aa6ff93505498fa6d801a9e490b873c8e72db50 (diff) |
Set of changes/tidying up which will actually allow the code to run.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@59 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ConfigData.c')
-rw-r--r-- | src/main/ConfigData.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/ConfigData.c b/src/main/ConfigData.c index f2bb948b..6fb1f896 100644 --- a/src/main/ConfigData.c +++ b/src/main/ConfigData.c @@ -38,7 +38,7 @@ int CCTK_AddGH(tFleshConfig *config, int convergence_level, cGH *GH) retval = 0; - if(convergence_level > config->nGHs-1) + if(config->nGHs == 0 || convergence_level > config->nGHs-1) { temp = (cGH **)realloc(config->GH, (convergence_level+1)*sizeof(cGH *)); |