diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2010-04-27 12:04:02 -0500 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 18:21:09 +0000 |
commit | 4fc3289ca632ddbb0b448318ac23e48101b797e6 (patch) | |
tree | ba1b503c875b71c97d142378d259eca65a6670d4 /Carpet/CarpetRegrid2 | |
parent | ed461485a6a3cf672cf79ea3937d5d7c2c0d0173 (diff) |
CarpetRegrid2: Use CarpetLib's new nan handling mechanism
Diffstat (limited to 'Carpet/CarpetRegrid2')
-rw-r--r-- | Carpet/CarpetRegrid2/src/regrid.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetRegrid2/src/regrid.cc b/Carpet/CarpetRegrid2/src/regrid.cc index 99c1832ff..918bfeee9 100644 --- a/Carpet/CarpetRegrid2/src/regrid.cc +++ b/Carpet/CarpetRegrid2/src/regrid.cc @@ -66,7 +66,7 @@ namespace CarpetRegrid2 { this->num_levels = num_levels[n]; this->active = active[n]; this->position = rvect (position_x[n], position_y[n], position_z[n]); - if (any (not CarpetLib::good::isfinite(this->position))) { + if (any (not isfinite(this->position))) { CCTK_VWarn (CCTK_WARN_ABORT, __LINE__, __FILE__, CCTK_THORNSTRING, "The position of region %d is [%g,%g,%g], which is not finite", n + 1, @@ -83,7 +83,7 @@ namespace CarpetRegrid2 { CCTK_REAL const ry = radius_y[ind] < 0.0 ? radius[ind] : radius_y[ind]; CCTK_REAL const rz = radius_z[ind] < 0.0 ? radius[ind] : radius_z[ind]; rvect const rad (rx, ry, rz); - if (any (not CarpetLib::good::isfinite(rad))) { + if (any (not isfinite(rad))) { CCTK_VWarn (CCTK_WARN_ABORT, __LINE__, __FILE__, CCTK_THORNSTRING, "The radius of refinement level %d of region %d is [%g,%g,%g], which is not finite", rl, n + 1, |