From f9fe04f3a7c17d165f17c75688133bca0859062f Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 9 Jul 2015 10:31:47 -0400 Subject: [PATCH] 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. --- tests/base/quadrature_chebyshev.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.5