From 688545fc0c278f25bcdb591187d8a3d9b5314917 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 27 Feb 2007 18:46:00 +0000 Subject: CarpetIOBasic: Use ::abs instead of abs to make AIX compiler happy The AIX C++ compiler didn't find the overloaded version of abs when called with Cactus's complex numbers. Using ::abs instad of abs cures this. I suspect a problem in this compiler's name lookup mechanism. darcs-hash:20070227184653-dae7b-d593a02c83e5497894c7bc78f218644f27f0ac4b.gz --- Carpet/CarpetIOBasic/src/iobasic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Carpet/CarpetIOBasic') diff --git a/Carpet/CarpetIOBasic/src/iobasic.cc b/Carpet/CarpetIOBasic/src/iobasic.cc index 0758bfc86..6c35e4376 100644 --- a/Carpet/CarpetIOBasic/src/iobasic.cc +++ b/Carpet/CarpetIOBasic/src/iobasic.cc @@ -678,7 +678,7 @@ namespace CarpetIOBasic { { DECLARE_CCTK_PARAMETERS; - CCTK_REAL const xa = abs (x); + CCTK_REAL const xa = ::abs (x); return xa != 0 and (xa < real_min or xa >= real_max); } -- cgit v1.2.3