diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-28 02:30:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-28 02:30:00 +0000 |
commit | 413d177a9a2c1646ed8cdcf7f63ac5dc54e3524c (patch) | |
tree | 6926c5573ea16b1a0c2df7826232f6e9e3b26a9d /Carpet/CarpetIOBasic | |
parent | 848e61bd75495ac798779e4c3c0cb0595b8a0957 (diff) |
CarpetIOBasic: Use CarpetLib::good::abs instead of abs
Use CarpetLib::good::abs instead of abs to make both the AIX compiler
and the other compilers happy.
darcs-hash:20070228023039-dae7b-a57fa45111795c48e29f938177e76ea4c0a9ff8d.gz
Diffstat (limited to 'Carpet/CarpetIOBasic')
-rw-r--r-- | Carpet/CarpetIOBasic/src/iobasic.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Carpet/CarpetIOBasic/src/iobasic.cc b/Carpet/CarpetIOBasic/src/iobasic.cc index 6c35e4376..6ab29fd37 100644 --- a/Carpet/CarpetIOBasic/src/iobasic.cc +++ b/Carpet/CarpetIOBasic/src/iobasic.cc @@ -22,6 +22,8 @@ #include "carpet.hh" +using namespace CarpetLib; + // That's a hack @@ -678,7 +680,9 @@ namespace CarpetIOBasic { { DECLARE_CCTK_PARAMETERS; - CCTK_REAL const xa = ::abs (x); + static_assert (good::abs(0.1) > 0, "Function abs has wrong signature"); + + CCTK_REAL const xa = good::abs (x); return xa != 0 and (xa < real_min or xa >= real_max); } |