diff options
author | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-07-19 17:31:46 +0000 |
---|---|---|
committer | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-07-19 17:31:46 +0000 |
commit | 4d451c5b93b8178f7801ae54ab73ecd03ed450fc (patch) | |
tree | 13d5a15295fb8123159bcc2f3916c77eba9124c9 /src/SetupGroup.c | |
parent | a4d6c36c807ffea67cf1aff1dc5ff58cb594b4c0 (diff) |
Things picked up by purify.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@246 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/SetupGroup.c')
-rw-r--r-- | src/SetupGroup.c | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/src/SetupGroup.c b/src/SetupGroup.c index dbbd419..a57841d 100644 --- a/src/SetupGroup.c +++ b/src/SetupGroup.c @@ -190,7 +190,7 @@ int PUGH_SetupArrayGroup(pGH *newGH, staggercode); /* FIXME: workaround */ - if(variable == 0) + if(variable == 0 && level == 0) { ((pGA *)newGH->variables[newGH->nvariables][level])->first_array_in_group = 1; } @@ -268,16 +268,21 @@ int PUGH_SetupGFGroup(pGH *newGH, { for(level = 0; level < n_timelevels; level++) { - newGH->variables[newGH->nvariables][level] = - PUGH_SetupGArray(newGH, - newGH->GFExtras[dim-1], - newGH->Connectivity[dim-1], - groupcomm, - CCTK_VarName(newGH->nvariables), - newGH->nvariables, - var_size, - vtype, - staggercode); + newGH->variables[newGH->nvariables][level] = + PUGH_SetupGArray(newGH, + newGH->GFExtras[dim-1], + newGH->Connectivity[dim-1], + groupcomm, + CCTK_VarName(newGH->nvariables), + newGH->nvariables, + var_size, + vtype, + staggercode); + /* FIXME: workaround */ + if(variable == 0 && level == 0) + { + ((pGA *)newGH->variables[newGH->nvariables][level])->first_array_in_group = 1; + } } newGH->nvariables++; } |