diff options
author | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-09-04 23:20:30 +0000 |
---|---|---|
committer | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-09-04 23:20:30 +0000 |
commit | e1b27e4e28dd4a3a01f9b2c283fa443f7a8975f7 (patch) | |
tree | 0d4699de9b08b277ed5b0cc951c490a0b992d006 /src/SetupGroup.c | |
parent | c01cd301abe303c731e4554bc02b7e7c4802d407 (diff) |
New parameter cacheline_mult which can be used to spread the cachelines
which consecutive GFs are aligned on. The default for this parameter
is better than no spreading, but still not optimal.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@265 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/SetupGroup.c')
-rw-r--r-- | src/SetupGroup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SetupGroup.c b/src/SetupGroup.c index bd68d40..797bde3 100644 --- a/src/SetupGroup.c +++ b/src/SetupGroup.c @@ -15,6 +15,8 @@ #include "pugh.h" #include "pughi.h" +#include "cctk_Parameters.h" + static char *rcsid = "$Header$"; CCTK_FILEVERSION (CactusPUGH_PUGH_SetupGroup_c) @@ -238,7 +240,7 @@ int PUGH_SetupGFGroup(pGH *newGH, int staggercode, int n_timelevels) { - + DECLARE_CCTK_PARAMETERS int variable; int var_size=CCTK_VarTypeSize(vtype); int retval=PUGH_SUCCESS; @@ -277,7 +279,7 @@ int PUGH_SetupGFGroup(pGH *newGH, groupcomm, CCTK_VarName(newGH->nvariables), newGH->nvariables, - newGH->narrays, + newGH->narrays*cacheline_mult, var_size, vtype, staggercode); |