mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: relax the tensor-inverse tolerance on Tensor (FULLDEBUG)
This commit is contained in:
committed by
Mark Olesen
parent
531e8ab66d
commit
0b1a33e9be
@ -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
|
||||
|
||||
Reference in New Issue
Block a user