diff options
author | allen <allen@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2002-08-20 16:06:05 +0000 |
---|---|---|
committer | allen <allen@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2002-08-20 16:06:05 +0000 |
commit | 99a903e3f8a6370b753c35d5f177f810322f795d (patch) | |
tree | 8a65141d4ce92b5010be5b7776785f1ff977d394 | |
parent | 42ee5bdbc563cbc3e51768aa5224bcbd4a77c723 (diff) |
Use the grid spacing corrected by the refinement level
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@180 6a38eb6e-646e-4a02-a296-d141613ad6c4
-rw-r--r-- | src/RobinBoundary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RobinBoundary.c b/src/RobinBoundary.c index b4066bb..9e1c963 100644 --- a/src/RobinBoundary.c +++ b/src/RobinBoundary.c @@ -700,10 +700,10 @@ static int ApplyBndRobin (const cGH *GH, /* precompute the distance to all 8 neighbors in a 3D grid */ dist[0] = 0; /* not used */ - dist[1] = GH->cctk_delta_space[0]; - dist[2] = GH->cctk_delta_space[1]; + dist[1] = GH->cctk_delta_space[0]/GH->cctk_levfac[0]; + dist[2] = GH->cctk_delta_space[1]/GH->cctk_levfac[1]; dist[3] = sqrt (SQR (dist[1]) + SQR (dist[2])); - dist[4] = GH->cctk_delta_space[2]; + dist[4] = GH->cctk_delta_space[2]/GH->cctk_levfac[2]; dist[5] = sqrt (SQR (dist[1]) + SQR (dist[4])); dist[6] = sqrt (SQR (dist[2]) + SQR (dist[4])); dist[7] = sqrt (SQR (dist[1]) + SQR (dist[2]) + SQR (dist[4])); |