diff options
author | tradke <tradke@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2001-08-29 22:00:49 +0000 |
---|---|---|
committer | tradke <tradke@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2001-08-29 22:00:49 +0000 |
commit | 53098fa72a4d793de88e5750120509c8f3f7a840 (patch) | |
tree | 6dc6c58cf2c50e9f0b718551f6e8a752d34c6911 | |
parent | 7e4e6fd2ee1f92984a7538558a7f94515bbf08b1 (diff) |
Bugfix in Robin BC. Thanks to Karen for finding this.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@155 6a38eb6e-646e-4a02-a296-d141613ad6c4
-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 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 \ { \ |