diff options
author | goodale <goodale@b9286e40-80fe-41ab-903a-d6b447012e1e> | 2004-05-17 12:28:58 +0000 |
---|---|---|
committer | goodale <goodale@b9286e40-80fe-41ab-903a-d6b447012e1e> | 2004-05-17 12:28:58 +0000 |
commit | 2e9dca72988c63774231a387fde8f5a5663490e0 (patch) | |
tree | 3d3025f5aebf6deec697c6e9f5a93960663f3d72 | |
parent | 063effd9ae6a7923c6db831d375ade861d6694c9 (diff) |
Untabified. Please try to adhere to the Cactus coding guidelines when
modifying or adding files.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusWave/WaveBinarySource/trunk@43 b9286e40-80fe-41ab-903a-d6b447012e1e
-rw-r--r-- | src/CoordinateStuff.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/CoordinateStuff.c b/src/CoordinateStuff.c index 025fc01..ae43de0 100644 --- a/src/CoordinateStuff.c +++ b/src/CoordinateStuff.c @@ -81,18 +81,18 @@ int IndexFloorC(cGH *GH, CCTK_REAL coord_value, int d) if ((coord_value<cmin)||(coord_value>cmax)) { CCTK_VWarn(2,__LINE__,__FILE__,CCTK_THORNSTRING, - "IndexFloor: coordinate value outside grid [%f,%f]: %f \n", - cmin, cmax, coord_value); + "IndexFloor: coordinate value outside grid [%f,%f]: %f \n", + cmin, cmax, coord_value); index_low = -3; } else { index_low = floor((coord_value-cmin)/ GH->cctk_delta_space[d]) - - GH->cctk_lbnd[d]; + - GH->cctk_lbnd[d]; if (index_low<0 || index_low>=GH->cctk_lsh[d]) { - index_low = -1; + index_low = -1; } } } @@ -140,18 +140,18 @@ int IndexCeilC(cGH *GH, CCTK_REAL coord_value, int d) if ((coord_value<cmin)||(coord_value>cmax)) { CCTK_VWarn(2,__LINE__,__FILE__,CCTK_THORNSTRING, - "IndexCeil: coordinate value outside grid [%f,%f]: %f \n", - cmin, cmax, coord_value); + "IndexCeil: coordinate value outside grid [%f,%f]: %f \n", + cmin, cmax, coord_value); index_up = -3; } else { index_up = ceil((coord_value-cmin)/ GH->cctk_delta_space[d]) - -GH->cctk_lbnd[d]; + -GH->cctk_lbnd[d]; if (index_up<0 || index_up>=GH->cctk_lsh[d]) { - index_up = -1; + index_up = -1; } } } |