aboutsummaryrefslogtreecommitdiff
path: root/src/RobinBoundary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/RobinBoundary.c')
-rw-r--r--src/RobinBoundary.c4
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)]; \
}