aboutsummaryrefslogtreecommitdiff
path: root/src/SetupGroup.c
diff options
context:
space:
mode:
authorgoodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-07-19 17:31:46 +0000
committergoodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-07-19 17:31:46 +0000
commit4d451c5b93b8178f7801ae54ab73ecd03ed450fc (patch)
tree13d5a15295fb8123159bcc2f3916c77eba9124c9 /src/SetupGroup.c
parenta4d6c36c807ffea67cf1aff1dc5ff58cb594b4c0 (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.c27
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++;
}