diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-27 18:46:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-02-27 18:46:00 +0000 |
commit | 688545fc0c278f25bcdb591187d8a3d9b5314917 (patch) | |
tree | eb5fb8f1dd6838d8fb96ace1b108e80a1dd00e1a /Carpet/CarpetIOBasic | |
parent | 0ce0a6d353114474c8e9b99d6ba9c0aec430e9ea (diff) |
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
Diffstat (limited to 'Carpet/CarpetIOBasic')
-rw-r--r-- | Carpet/CarpetIOBasic/src/iobasic.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |