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 c80e006..b8e93bf 100644
--- a/src/RobinBoundary.c
+++ b/src/RobinBoundary.c
@@ -445,8 +445,8 @@ void CCTK_FCALL CCTK_FNAME (BndRobinVN)
/* avoid the else branch with the expensive sqrt() operation if possible */ \
if (abs (dx) + abs (dy) + abs (dz) == 1) \
{ \
- u_dst = dx ? x[dst] : (dy ? y[dst] : z[dst]); \
- u_src = dx ? x[src] : (dy ? y[src] : z[src]); \
+ u_dst = fabs ((double) (dx ? x[dst] : (dy ? y[dst] : z[dst]))); \
+ u_src = fabs ((double) (dx ? x[src] : (dy ? y[src] : z[src]))); \
} \
else \
{ \