aboutsummaryrefslogtreecommitdiff
path: root/src/Comm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Comm.c')
-rw-r--r--src/Comm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Comm.c b/src/Comm.c
index 2159a83..0c36af8 100644
--- a/src/Comm.c
+++ b/src/Comm.c
@@ -984,15 +984,15 @@ static int PUGH_SyncSingleProc(pGH *pughGH, pComm *comm)
if (GA->connectivity->perme[face / 2])
{
/* get the index ranges for the nested loops */
- istart_from = GA->extras->overlap[GA->stagger][0][face];
- iend_from = GA->extras->overlap[GA->stagger][1][face];
+ istart_from = GA->extras->overlap[GA->stagger[face>>1]][0][face];
+ iend_from = GA->extras->overlap[GA->stagger[face>>1]][1][face];
if (face & 1)
{
- istart_to = GA->extras->ghosts[GA->stagger][0][face - 1];
+ istart_to = GA->extras->ghosts[GA->stagger[face>>1]][0][face - 1];
}
else
{
- istart_to = GA->extras->ghosts[GA->stagger][0][face + 1];
+ istart_to = GA->extras->ghosts[GA->stagger[face>>1]][0][face + 1];
}
/* set iterators to the start vector */