diff options
author | eschnett <eschnett@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2013-03-19 02:54:09 +0000 |
---|---|---|
committer | eschnett <eschnett@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2013-03-19 02:54:09 +0000 |
commit | 932074d09d9bb230869f4b4246f1cd2933f7c433 (patch) | |
tree | eba1ca57a7a7ec12f1b688d77dcebc168af1934f /src/RobinBoundary.c | |
parent | c6844f3f2026a0bc60046322b8849e4523b2e816 (diff) |
Use cctk_ash to index grid functions
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@313 6a38eb6e-646e-4a02-a296-d141613ad6c4
Diffstat (limited to 'src/RobinBoundary.c')
-rw-r--r-- | src/RobinBoundary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RobinBoundary.c b/src/RobinBoundary.c index 1e36aa2..46c08d5 100644 --- a/src/RobinBoundary.c +++ b/src/RobinBoundary.c @@ -588,8 +588,8 @@ void CCTK_FCALL CCTK_FNAME (BndRobinVN) #define SET_LINEAR_INDICES(i) \ { \ dst = CCTK_GFINDEX3D (GH, i, j, k); \ - src = CCTK_GFINDEX3D (GH, i+dx, j+dy, k+dz); \ - distance = dist[abs(dx) + 2*abs (dy) + 4*abs (dz)]; \ + src = CCTK_GFINDEX3D (GH, (i)+dx, j+dy, k+dz); \ + distance = dist[abs (dx) + 2*abs (dy) + 4*abs (dz)]; \ } |