aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOBasic
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetIOBasic')
-rw-r--r--Carpet/CarpetIOBasic/src/iobasic.cc6
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);
}