]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
More fixes for cxx.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Apr 2003 22:54:56 +0000 (22:54 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 30 Apr 2003 22:54:56 +0000 (22:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@7521 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 5887304356cf01b92df06d79535748fd1d2c3e02..24371badf5d2ce368023ce5a661aa8a81a5bca81 100644 (file)
@@ -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] *= std::pow(10, dim);
-      gradients1[k] *= std::pow(10, dim);
+      values1[k] *= std::pow(10., dim);
+      gradients1[k] *= std::pow(10., dim);
       
       deallog << 'P' << k << "\t= " << values1[k]
              << "\tgradient\t";
index 492884b379a6fa6d8e209e6c39f9ff6bd803076e..1f4a362ca4940b97b2b21375e9583eae4e82a101 100644 (file)
@@ -107,7 +107,7 @@ int main ()
            deallog << "Polynomial " << i
                    << ": Values q(" << 2.*x-1.
                    << ") and p(" << x
-                   << ") differ by 10^" << std::log(diff)/log(10)
+                   << ") differ by 10^" << std::log(diff)/std::log(10)
                    << " after shift: " << q[i].value(2.*x-1.)
                    << " != " << p[i].value(x)
                    << std::endl;
index dcbfbd6fb1965bc1b9bf63690540920915e44e5a..7ea1e2a70f8e367dc042a6ee657ca94a42c35aaa 100644 (file)
@@ -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] *= std::pow(10, dim);
-      gradients[k] *= std::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.