ENH: relax the tensor-inverse tolerance on Tensor (FULLDEBUG)

This commit is contained in:
Kutalmis Bercin
2021-02-13 17:18:51 +00:00
committed by Mark Olesen
parent 531e8ab66d
commit 0b1a33e9be

View File

@ -733,11 +733,12 @@ template<class Cmpt>
inline Tensor<Cmpt> inv(const Tensor<Cmpt>& t, const Cmpt dett)
{
#ifdef FULLDEBUG
if (mag(dett) < SMALL)
if (mag(dett) < VSMALL)
{
FatalErrorInFunction
<< "Tensor is not invertible due to the zero determinant:"
<< "det(Tensor) = " << mag(dett)
<< "Tensor is not invertible due to the (almost) zero determinant:"
<< " Tensor = " << t << nl
<< " det(Tensor) = " << dett
<< abort(FatalError);
}
#endif