diff options
Diffstat (limited to 'src/CoordinateStuff.c')
-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; } } } |