]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Relax tolerance.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 19 Jul 2015 06:35:51 +0000 (08:35 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 20 Jul 2015 13:51:33 +0000 (15:51 +0200)
tests/base/polynomial_lagrange_ops.cc

index cb3253925e54ec4ee485fb8d90f6df2c6836e5a2..f2efd8ef85b31b6fe71cf5ec0a59222619d07a2f 100644 (file)
@@ -168,7 +168,7 @@ void check_mult_expand (const std::vector<Polynomial<double> > &p)
           double x = (double)Testing::rand()/RAND_MAX;
           double value1 = p[i].value (x) * p[j].value(x);
           double value2 = q   .value (x);
-          if (std::fabs(value1-value2) > std::max(1e-10,1e-10*std::fabs(value1)))
+          if (std::fabs(value1-value2) > std::max(1e-9,1e-9*std::fabs(value1)))
             deallog << "Error multiply at x=" << x
                     << ": p_"<<i<< "(x)*p_"<<j<<"(x)=" << value1
                     << ", q(x)=" << value2 << std::endl;

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.