]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Prefer std::abs over std::fabs. 2708/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 24 Jun 2016 06:32:11 +0000 (08:32 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 24 Jun 2016 06:32:11 +0000 (08:32 +0200)
include/deal.II/base/symmetric_tensor.h

index e9e2f4174a47c7840662d5d66acff79b79fc6887..bac352363428cb773897a8073c801b9bb752dfed 100644 (file)
@@ -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();

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.