From: Timo Heister Date: Thu, 9 Jul 2015 14:31:47 +0000 (-0400) Subject: MAC: maybe fix test X-Git-Tag: v8.3.0-rc1~45^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9fe04f3a7c17d165f17c75688133bca0859062f;p=dealii.git MAC: maybe fix test Forcing all computations to be done as long double with the hope that this fixes the numerical differences on the MAC tester. --- diff --git a/tests/base/quadrature_chebyshev.cc b/tests/base/quadrature_chebyshev.cc index 5314b558cf..28e6109be1 100644 --- a/tests/base/quadrature_chebyshev.cc +++ b/tests/base/quadrature_chebyshev.cc @@ -113,7 +113,7 @@ void check_quadrature(double *exact_monomials) for (unsigned int i=0; i<32; ++i) { - double quadrature_int=0; + long double quadrature_int=0; double err = 0; // Check the integral @@ -121,8 +121,8 @@ void check_quadrature(double *exact_monomials) long double f=1.; for (unsigned int x=0; x(points[x](0)), i*1.0L); + quadrature_int+=f*static_cast(weights[x]); } err = std::fabs(quadrature_int-exact_monomials[i]); if (err < 1.e-15)