aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOBasic
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/CarpetIOBasic')
-rw-r--r--Carpet/CarpetIOBasic/src/iobasic.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/Carpet/CarpetIOBasic/src/iobasic.cc b/Carpet/CarpetIOBasic/src/iobasic.cc
index 5dd668091..78e372ba7 100644
--- a/Carpet/CarpetIOBasic/src/iobasic.cc
+++ b/Carpet/CarpetIOBasic/src/iobasic.cc
@@ -81,9 +81,7 @@ namespace CarpetIOBasic {
{
DECLARE_CCTK_PARAMETERS;
- static_assert (abs(0.1) > 0, "Function abs has wrong signature");
-
- CCTK_REAL const xa = abs (x);
+ CCTK_REAL const xa = fabs (x);
return xa != 0 and (xa < real_min or xa >= real_max);
}