From a8262747f18a85dbfd662355d96111f0f7cd39f3 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 30 Apr 2003 22:51:19 +0000 Subject: [PATCH] Add some missing std:: git-svn-id: https://svn.dealii.org/trunk@7520 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/base/anisotropic_1.cc | 10 +++++----- tests/base/polynomial1d.cc | 6 +++--- tests/base/polynomial_test.cc | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/base/anisotropic_1.cc b/tests/base/anisotropic_1.cc index 9c3f727f2f..5887304356 100644 --- a/tests/base/anisotropic_1.cc +++ b/tests/base/anisotropic_1.cc @@ -45,14 +45,14 @@ void check_poly(const Point &x, { // Check if compute_value is ok double val1 = p.compute_value(k,x); - if (fabs(val1 - values1[k]) > 5.0E-16) + if (std::fabs(val1 - values1[k]) > 5.0E-16) deallog << 'P' << k << ": values differ " << val1 << " != " << values1[k] << std::endl; double val2 = q.compute_value(k,x); - if (fabs(val2 - values2[k]) > 5.0E-16) + if (std::fabs(val2 - values2[k]) > 5.0E-16) deallog << 'Q' << k << ": values differ " << val2 << " != " << values2[k] << std::endl; - if (fabs(val2 - val1) > 5.0E-16) + if (std::fabs(val2 - val1) > 5.0E-16) deallog << "PQ" << k << ": values differ " << val1 << " != " << val2 << std::endl; @@ -91,8 +91,8 @@ void check_poly(const Point &x, // somewhat to make them // significant despite our // two-post-dot-digits limit - values1[k] *= pow(10, dim); - gradients1[k] *= pow(10, dim); + values1[k] *= std::pow(10, dim); + gradients1[k] *= std::pow(10, dim); deallog << 'P' << k << "\t= " << values1[k] << "\tgradient\t"; diff --git a/tests/base/polynomial1d.cc b/tests/base/polynomial1d.cc index c3c3c3a772..492884b379 100644 --- a/tests/base/polynomial1d.cc +++ b/tests/base/polynomial1d.cc @@ -90,7 +90,7 @@ int main () for (unsigned int j=0;j 1.e-15) + if (std::fabs(q[i].value(2.*x)-p[i].value(x)) > 1.e-15) deallog << "Polynomial " << i << ": Values q(" << 2.*x << ") and p(" << x @@ -102,12 +102,12 @@ int main () for (unsigned int j=0;j 1.e-13) deallog << "Polynomial " << i << ": Values q(" << 2.*x-1. << ") and p(" << x - << ") differ by 10^" << log(diff)/log(10) + << ") differ by 10^" << std::log(diff)/log(10) << " after shift: " << q[i].value(2.*x-1.) << " != " << p[i].value(x) << std::endl; diff --git a/tests/base/polynomial_test.cc b/tests/base/polynomial_test.cc index c9a16ef9ed..dcbfbd6fb1 100644 --- a/tests/base/polynomial_test.cc +++ b/tests/base/polynomial_test.cc @@ -48,7 +48,7 @@ void check_poly(const Point& x, // Check if compute_value is ok double val = p.compute_value(k,x); - if (fabs(val - values[k]) > 5.0E-15) + if (std::fabs(val - values[k]) > 5.0E-15) deallog << 'P' << k << ": values differ " << val << " != " << values[k] << std::endl; @@ -78,8 +78,8 @@ void check_poly(const Point& x, // somewhat to make them // significant despite our // two-post-dot-digits limit - values[k] *= pow(10, dim); - gradients[k] *= pow(10, dim); + values[k] *= std::pow(10, dim); + gradients[k] *= std::pow(10, dim); deallog << 'P' << k << "\t= " << values[k] << "\tgradient\t"; -- 2.39.5