diff options
Diffstat (limited to 'src/Comm.c')
-rw-r--r-- | src/Comm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 */ |