From 2e9dca72988c63774231a387fde8f5a5663490e0 Mon Sep 17 00:00:00 2001 From: goodale Date: Mon, 17 May 2004 12:28:58 +0000 Subject: 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 --- src/CoordinateStuff.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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_valuecmax)) { 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_valuecmax)) { 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; } } } -- cgit v1.2.3