]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add some missing std::
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Apr 2003 22:51:19 +0000 (22:51 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Apr 2003 22:51:19 +0000 (22:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@7520 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/anisotropic_1.cc
tests/base/polynomial1d.cc
tests/base/polynomial_test.cc

index 9c3f727f2f9664b7bc2e773935b1556dcb1df5e1..5887304356cf01b92df06d79535748fd1d2c3e02 100644 (file)
@@ -45,14 +45,14 @@ void check_poly(const Point<dim> &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<dim> &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";
index c3c3c3a7722fbf3e9698df428591cfcd0328656d..492884b379a6fa6d8e209e6c39f9ff6bd803076e 100644 (file)
@@ -90,7 +90,7 @@ int main ()
       for (unsigned int j=0;j<p.size();++j)
        {
          double x = (double) j/p.size();
-         if (fabs(q[i].value(2.*x)-p[i].value(x)) > 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<p.size();++j)
        {
          double x = (double) j/p.size();
-         double diff = fabs(q[i].value(2.*x-1.)-p[i].value(x));
+         double diff = std::fabs(q[i].value(2.*x-1.)-p[i].value(x));
          if (diff > 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;
index c9a16ef9edf8563035e768dc187cf4d818b4a11a..dcbfbd6fb1965bc1b9bf63690540920915e44e5a 100644 (file)
@@ -48,7 +48,7 @@ void check_poly(const Point<dim>& 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<dim>& 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";

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.