From e6c50f938c052bdfe32fdddb04754a00c823b85b Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Thu, 22 Jun 2017 18:30:25 +0200 Subject: [PATCH] [T] KelvinVector: Fix test criterion. --- Tests/MaterialLib/KelvinVector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/MaterialLib/KelvinVector.cpp b/Tests/MaterialLib/KelvinVector.cpp index 2adb278ef47..6ff6c5c6096 100644 --- a/Tests/MaterialLib/KelvinVector.cpp +++ b/Tests/MaterialLib/KelvinVector.cpp @@ -154,7 +154,7 @@ TEST_F(MaterialLibSolidsKelvinVector4, Inverse) (inverse(v) - tensorToKelvin<4>(kelvinToTensor(v).inverse())) .norm(); // The error is only weekly depending on the input vector norm. - return error < 1e-6 && 1e-8 * std::pow(v.norm(), 1.4); + return error < 1e-6 && error < 1e-8 * std::pow(v.norm(), 1.4); }; ac::check<KelvinVector<4>>( @@ -174,7 +174,7 @@ TEST_F(MaterialLibSolidsKelvinVector6, Inverse) (inverse(v) - tensorToKelvin<6>(kelvinToTensor(v).inverse())) .norm(); // The error is only weekly depending on the input vector norm. - return error < 1e-6 && 1e-8 * std::pow(v.norm(), 1.4); + return error < 1e-6 && error < 1e-8 * std::pow(v.norm(), 1.4); }; ac::check<KelvinVector<6>>( -- GitLab