From: David Wells Date: Tue, 11 Aug 2015 22:11:01 +0000 (-0400) Subject: Remove a custom implementation of abs. X-Git-Tag: v8.4.0-rc2~621^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7f0d49333c5a167ddba4f7a4e96ca93a274a083;p=dealii.git Remove a custom implementation of abs. The std::abs function suffices. --- diff --git a/source/base/quadrature_lib.cc b/source/base/quadrature_lib.cc index 3eead3a7ea..dd16fb4c72 100644 --- a/source/base/quadrature_lib.cc +++ b/source/base/quadrature_lib.cc @@ -29,15 +29,6 @@ DEAL_II_NAMESPACE_OPEN // for all lower dimensions as well. That is why in this file the check // is for deal_II_dimension >= any_number and not for == -namespace -{ - template - number abs (const number a) - { - return ((a>0) ? a : -a); - } -} - template <> @@ -158,7 +149,7 @@ QGauss<1>::QGauss (const unsigned int n) pp = n*(z*p1-p2)/(z*z-1); z = z-p1/pp; } - while (abs(p1/pp) > tolerance); + while (std::abs(p1/pp) > tolerance); double x = .5*z; this->quadrature_points[i-1] = Point<1>(.5-x);