diff options
author | tradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2004-06-26 17:42:34 +0000 |
---|---|---|
committer | tradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2004-06-26 17:42:34 +0000 |
commit | 69f40164f33675a75b5a36f67d5d2872feb39bd8 (patch) | |
tree | b71c4c1f6c22f745e7440261eca15eef2751d40b /src/FinishReceiveGA.c | |
parent | 5975ab9ce7d2c8a287859da1f68579ba6233b82d (diff) |
Store the directional stagger indices in the pGV structure rather than just the
staggering code.
And use this former later on - this closes PR CactusPUGH 1549: "Staggered grids crash PUGH".
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@446 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/FinishReceiveGA.c')
-rw-r--r-- | src/FinishReceiveGA.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FinishReceiveGA.c b/src/FinishReceiveGA.c index d483e4f..31b469b 100644 --- a/src/FinishReceiveGA.c +++ b/src/FinishReceiveGA.c @@ -84,8 +84,8 @@ void FinishReceiveGA(pGH *pughGH, int dir, pComm *comm) comm->n_vars, GA->name); #endif - istart = GA->extras->ghosts[GA->stagger][0][dir]; - iend = GA->extras->ghosts[GA->stagger][1][dir]; + istart = GA->extras->ghosts[GA->stagger[dir>>1]][0][dir]; + iend = GA->extras->ghosts[GA->stagger[dir>>1]][1][dir]; iterator = GA->extras->iterator; /* set iterator to the start vector */ |