From c7f0d49333c5a167ddba4f7a4e96ca93a274a083 Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 11 Aug 2015 18:11:01 -0400 Subject: [PATCH] Remove a custom implementation of abs. The std::abs function suffices. --- source/base/quadrature_lib.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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); -- 2.39.5