diff options
author | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-09-01 20:51:51 +0000 |
---|---|---|
committer | allen <allen@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-09-01 20:51:51 +0000 |
commit | c01cd301abe303c731e4554bc02b7e7c4802d407 (patch) | |
tree | cdd46aa3e6ed3ae81168377bf6e107329180ae24 /src/SetupGroup.c | |
parent | 127a5f37d9285aabc00e623c347a7c0d4150d3b7 (diff) |
Added an index for arrays to the pGA and pGH which is needed to make that
Cache lines are associated uniquely with each timelevel of GA
This unique index is used now when storage is assigned for the GA
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@264 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/SetupGroup.c')
-rw-r--r-- | src/SetupGroup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SetupGroup.c b/src/SetupGroup.c index a57841d..bd68d40 100644 --- a/src/SetupGroup.c +++ b/src/SetupGroup.c @@ -185,9 +185,11 @@ int PUGH_SetupArrayGroup(pGH *newGH, groupcomm, CCTK_VarName(newGH->nvariables), newGH->nvariables, + newGH->narrays, var_size, vtype, staggercode); + newGH->narrays++; /* FIXME: workaround */ if(variable == 0 && level == 0) @@ -275,10 +277,12 @@ int PUGH_SetupGFGroup(pGH *newGH, groupcomm, CCTK_VarName(newGH->nvariables), newGH->nvariables, + newGH->narrays, var_size, vtype, staggercode); /* FIXME: workaround */ + newGH->narrays++; if(variable == 0 && level == 0) { ((pGA *)newGH->variables[newGH->nvariables][level])->first_array_in_group = 1; |