Commit 435012a1 authored by Oliver Sander's avatar Oliver Sander
Browse files

Merge branch 'fix_test-fe_tolerance' into 'master'

fix tolerance in test-fe for comparison of coefficients.

See merge request !212
parents 7a40aae8 39614c5d
Pipeline #43171 passed with stage
in 10 minutes and 22 seconds
......@@ -138,7 +138,7 @@ bool testInterpolation(const FE& fe, double eps, int n=5)
// Check if interpolation weights are equal to coefficients
for(std::size_t j=0; j<coeff.size() && success; ++j) {
if ( std::abs(coeff[j]-f.coeff[j]) >
eps*(std::max(std::abs(f.coeff[j]), 1.0)) )
(2*coeff.size()*eps)*(std::max(std::abs(f.coeff[j]), 1.0)) )
{
std::cout << std::setprecision(16);
std::cout << "Bug in LocalInterpolation for finite element type "
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment