From 413d177a9a2c1646ed8cdcf7f63ac5dc54e3524c Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Wed, 28 Feb 2007 02:30:00 +0000 Subject: 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 --- Carpet/CarpetIOBasic/src/iobasic.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Carpet/CarpetIOBasic') 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); } -- cgit v1.2.3