diff --git a/Tests/MaterialLib/TestMPLExponential.cpp b/Tests/MaterialLib/TestMPLExponential.cpp index 514ff21433a401d0f51d3b5aec4d79dd5de64667..7b41067809c22cc9e636aa9c62437663af97cd38 100644 --- a/Tests/MaterialLib/TestMPLExponential.cpp +++ b/Tests/MaterialLib/TestMPLExponential.cpp @@ -74,8 +74,12 @@ TEST_F(MaterialPropertyLibExponentialProperty, TestNumericalDerivatives) double const Dv = dydx_C2(T, y, eps); double const Dv2 = d2ydx2_C2(T, y, eps); + if ((std::abs(dv - Dv) > 1e-9 * v) || + (std::abs(dv2 - Dv2) > 1.5e-4 * v)) + INFO("{} {} {}", T, std::abs(dv - Dv) / v, std::abs(dv2 - Dv2) / v); + return (std::abs(dv - Dv) <= 1e-9 * v) && - (std::abs(dv2 - Dv2) <= eps * v); + (std::abs(dv2 - Dv2) <= 1.5e-4 * v); }; // Limit values to avoid +-inf.