From 2f34a3bc2b28761ffc9772446b54b4dbf29a065b Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 26 May 2013 16:38:01 -0400 Subject: Carpet: Use fabs() instead of abs() Some compilers don't like abs() for floating point numbers. --- Carpet/Carpet/src/Timing.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Carpet/Carpet/src/Timing.cc b/Carpet/Carpet/src/Timing.cc index 812c92ca5..6f58b3a3b 100644 --- a/Carpet/Carpet/src/Timing.cc +++ b/Carpet/Carpet/src/Timing.cc @@ -533,7 +533,7 @@ namespace Carpet { int const count = dist::size(); CCTK_REAL const avg = global.ups / count; - CCTK_REAL const stddev = sqrt (abs (global.ups2 - ipow (avg,2)) / count); + CCTK_REAL const stddev = sqrt (fabs (global.ups2 - ipow (avg,2)) / count); CCTK_VInfo (CCTK_THORNSTRING, "Local updates per second: %g", -- cgit v1.2.3