diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-05-26 16:38:01 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-05-26 16:38:01 -0400 |
commit | 2f34a3bc2b28761ffc9772446b54b4dbf29a065b (patch) | |
tree | f6cc183527a543a433bd670a9dff0c005bc6aab5 | |
parent | b0835c11c078d7b578fdf7fd65ef954b91e2afda (diff) |
Carpet: Use fabs() instead of abs()
Some compilers don't like abs() for floating point numbers.
-rw-r--r-- | Carpet/Carpet/src/Timing.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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", |