Skip to content
Snippets Groups Projects
Commit 0e9b0248 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Dmitri Naumov
Browse files

[T] MatL KelvinVector; Remove unused eps capture.

parent 7d308894
No related branches found
No related tags found
No related merge requests found
......@@ -157,11 +157,10 @@ TEST_F(MaterialLibSolidsKelvinVector4, Inverse)
return error < 1e-6 && 1e-8 * std::pow(v.norm(), 1.4);
};
auto eps = std::numeric_limits<double>::epsilon();
ac::check<KelvinVector<4>>(
f, 1000,
ac::make_arbitrary(kelvinVectorGenerator)
.discard_if([&eps](KelvinVector<4> const& v) {
.discard_if([](KelvinVector<4> const& v) {
// only invertable matrices
return (std::abs(kelvinToTensor(v).determinant()) == 0);
}),
......@@ -178,11 +177,10 @@ TEST_F(MaterialLibSolidsKelvinVector6, Inverse)
return error < 1e-6 && 1e-8 * std::pow(v.norm(), 1.4);
};
auto eps = std::numeric_limits<double>::epsilon();
ac::check<KelvinVector<6>>(
f, 1000,
ac::make_arbitrary(kelvinVectorGenerator)
.discard_if([&eps](KelvinVector<6> const& v) {
.discard_if([](KelvinVector<6> const& v) {
// only invertable matrices
return (std::abs(kelvinToTensor(v).determinant()) == 0);
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment