aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlanfer <lanfer@b9286e40-80fe-41ab-903a-d6b447012e1e>2000-07-18 09:41:58 +0000
committerlanfer <lanfer@b9286e40-80fe-41ab-903a-d6b447012e1e>2000-07-18 09:41:58 +0000
commite81d74212c47854763baa0bd69600830758baeee (patch)
treeb7a9630d934fce185396fabd98c1003539303514
parent4b056b2fb2fcf498ffed44aee49d17fe2744ff2e (diff)
removing cctk_origin_space
git-svn-id: http://svn.cactuscode.org/arrangements/CactusWave/WaveBinarySource/trunk@7 b9286e40-80fe-41ab-903a-d6b447012e1e
-rw-r--r--src/CoordinateStuff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CoordinateStuff.c b/src/CoordinateStuff.c
index 4fe763b..de22af4 100644
--- a/src/CoordinateStuff.c
+++ b/src/CoordinateStuff.c
@@ -53,7 +53,7 @@ int IndexFloorC(cGH *GH, CCTK_REAL coord_value, int d)
return(-3);
}
- idummy = floor((coord_value-GH->cctk_origin_space[d])/ GH->cctk_delta_space[d]);
+ idummy = floor((coord_value-cmin)/ GH->cctk_delta_space[d]);
index_low = idummy-GH->cctk_lbnd[d];
if (GH->cctk_bbox[2*d]==1)
@@ -125,7 +125,7 @@ int IndexCeilC(cGH *GH, CCTK_REAL coord_value, int d)
return(-3);
}
- idummy = ceil((coord_value-GH->cctk_origin_space[d])/ GH->cctk_delta_space[d]);
+ idummy = ceil((coord_value-cmin)/ GH->cctk_delta_space[d]);
index_up = idummy-GH->cctk_lbnd[d];
if (GH->cctk_bbox[2*d]==1)