aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhawke <hawke@eec4d7dc-71c2-46d6-addf-10296150bf52>2004-05-15 13:20:43 +0000
committerhawke <hawke@eec4d7dc-71c2-46d6-addf-10296150bf52>2004-05-15 13:20:43 +0000
commitbc2354cbbda2657eb0bad662657597a947ed02d3 (patch)
tree062f82bd520abfb039946d45611f8e2ab80b8041
parent24cfb08b61c9c55f283ad87a50358757410e18af (diff)
Looks like I didn't understand how the ORIGIN_SPACE macro works. This should now give the correct x coordinate in a multiprocessor run where the x direction is split.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@80 eec4d7dc-71c2-46d6-addf-10296150bf52
-rw-r--r--src/Cartoon2DBC.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Cartoon2DBC.c b/src/Cartoon2DBC.c
index 2added6..0145b22 100644
--- a/src/Cartoon2DBC.c
+++ b/src/Cartoon2DBC.c
@@ -129,9 +129,9 @@ int BndCartoon2DVI(const cGH *cctkGH, int tensortype, int prolongtype, int vi)
dy0 = cctkGH->cctk_delta_space[1]/cctkGH->cctk_levfac[1];
*/
- lx0 = CCTK_ORIGIN_SPACE(0);
dx0 = CCTK_DELTA_SPACE(0);
dy0 = CCTK_DELTA_SPACE(1);
+ lx0 = CCTK_ORIGIN_SPACE(0) + dx0 * cctk_lbnd[0];
timelevel = 0;
@@ -370,8 +370,8 @@ static CCTK_REAL Cartoon2DInterp(const cGH *cctkGH, CCTK_REAL *f,
dx0 = cctkGH->cctk_delta_space[0]/cctkGH->cctk_levfac[0];
*/
- lx0 = CCTK_ORIGIN_SPACE(0);
dx0 = CCTK_DELTA_SPACE(0);
+ lx0 = CCTK_ORIGIN_SPACE(0) + dx0 * cctk_lbnd[0];
/* find i such that x(i) < x <= x(i+1)
for rotation on entry always x > x(i), but sometimes also x > x(i+1) */
@@ -422,8 +422,8 @@ static CCTK_REAL Cartoon2DInterp_ENO(const cGH *cctkGH,
lnx = cctkGH->cctk_lsh[0];
- lx0 = CCTK_ORIGIN_SPACE(0);
dx0 = CCTK_DELTA_SPACE(0);
+ lx0 = CCTK_ORIGIN_SPACE(0) + dx0 * cctk_lbnd[0];
/* find i such that x(i) < x <= x(i+1)
for rotation on entry always x > x(i), but sometimes also x > x(i+1) */