aboutsummaryrefslogtreecommitdiff
path: root/src/GHExtension.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/GHExtension.c')
-rw-r--r--src/GHExtension.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/GHExtension.c b/src/GHExtension.c
index 8e14fd2..5c43c30 100644
--- a/src/GHExtension.c
+++ b/src/GHExtension.c
@@ -99,7 +99,6 @@ void *PUGH_SetupGH (tFleshConfig *config,
PUGH_GFPeriodic (maxdim, perme);
newGH = PUGH_SetupPGH (GH, maxdim, nsize, ghostsize,
- CCTK_StaggerVars() ? PUGH_STAGGER : PUGH_NO_STAGGER,
perme);
if (!newGH)
{
@@ -152,7 +151,7 @@ void *PUGH_SetupGH (tFleshConfig *config,
PUGH_SetupGroup (newGH, groupsize, groupghostsize, pgroup.grouptype,
pgroup.vartype, pgroup.dim, pgroup.numvars,
- pgroup.vectorlength, pgroup.stagtype,
+ pgroup.vectorlength,
pgroup.numtimelevels, pgroup.vectorgroup);
}
@@ -178,7 +177,7 @@ void *PUGH_SetupGH (tFleshConfig *config,
@@*/
static void PUGH_InitGHBasics (cGH *GH)
{
- int dim, stagger;
+ int dim;
pGH *mypGH;
pGExtras *GFExtras;
@@ -210,14 +209,7 @@ static void PUGH_InitGHBasics (cGH *GH)
GH->cctk_lbnd[dim] = GFExtras->lb[mypGH->myproc][dim];
GH->cctk_ubnd[dim] = GFExtras->ub[mypGH->myproc][dim];
- for (stagger = 0; stagger < CCTK_NSTAGGER; stagger++)
- {
- GH->cctk_lssh[CCTK_LSSH_IDX (stagger, dim)] = GH->cctk_lsh[dim];
- if (GH->cctk_bbox[2*dim + 1] == 1 && stagger > 0)
- {
- GH->cctk_lssh[CCTK_LSSH_IDX (stagger, dim)]--;
- }
- }
+ GH->cctk_ash[dim] = GH->cctk_lsh[dim];
}
}
@@ -239,7 +231,7 @@ static void PUGH_InitGHBasics (cGH *GH)
@@*/
static void PUGH_InitGHVariables (cGH *GH)
{
- int var, gtype, level, ntimelevels;
+ int var, level, ntimelevels;
pGH *mypGH;
@@ -247,7 +239,6 @@ static void PUGH_InitGHVariables (cGH *GH)
for (var = 0; var < mypGH->nvariables; var++)
{
- gtype = CCTK_GroupTypeFromVarI (var);
ntimelevels = CCTK_MaxTimeLevelsVI (var);
for (level = 0; level < ntimelevels; level++)