mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2315 AppFwk : Use fabs
This commit is contained in:
parent
9a41e1c134
commit
98374923b9
@ -206,7 +206,7 @@ cvf::Vec3f Tensor3<S>::calculatePrincipals( cvf::Vec3f principalDirections[3]) c
|
||||
bool isAllTensCompsZero = true;
|
||||
for (i = 0; i < 6; i++)
|
||||
{
|
||||
if (!(abs(m_tensor[i]) < floatThreshold))
|
||||
if (!(fabs(m_tensor[i]) < floatThreshold))
|
||||
{
|
||||
isAllTensCompsZero = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user