aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--param.ccl5
-rw-r--r--src/SetupGroup.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/param.ccl b/param.ccl
index 1c83eb7..ce1fc2f 100644
--- a/param.ccl
+++ b/param.ccl
@@ -209,3 +209,8 @@ STRING partition_3d_z "Tells how to partition on direction z"
LOGICAL storage_verbose "Report on memory assignment"
{
} "no"
+
+INT cacheline_mult "Multiplier for cacheline number"
+{
+ 0:* :: "Any positive number"
+} 4001
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);