From: Martin Kronbichler Date: Fri, 24 Jun 2016 06:32:11 +0000 (+0200) Subject: Prefer std::abs over std::fabs. X-Git-Tag: v8.5.0-rc1~957^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef0b30f5c0cea02cc5e061f53c431c18b6e2428d;p=dealii.git Prefer std::abs over std::fabs. --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index e9e2f4174a..bac3523634 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -1756,7 +1756,7 @@ namespace internal switch (dim) { case 1: - return_value = std::fabs(data[0]); + return_value = std::abs(data[0]); break; case 2: return_value = std::sqrt(data[0]*data[0] + data[1]*data[1] + @@ -1793,7 +1793,7 @@ namespace internal switch (dim) { case 1: - return_value = std::fabs (data[0][0]); + return_value = std::abs (data[0][0]); break; default: return_value = Number();