Skip to content
Snippets Groups Projects
Commit e4d24028 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

ENH: tensor: limit calculation of small eigenvalues

parent 2e659a59
Branches
Tags
No related merge requests found
......@@ -119,7 +119,7 @@ Foam::vector Foam::eigenValues(const tensor& t)
+ t.xy()*t.yx()*t.zz() + t.xx()*t.yz()*t.zy();
// If there is a zero root
if (mag(c) < ROOTVSMALL)
if (mag(c) < 1e-100)
{
scalar disc = sqr(a) - 4*b;
......@@ -314,7 +314,7 @@ Foam::vector Foam::eigenValues(const symmTensor& t)
+ t.xy()*t.xy()*t.zz() + t.xx()*t.yz()*t.yz();
// If there is a zero root
if (mag(c) < ROOTVSMALL)
if (mag(c) < 1e-100)
{
scalar disc = sqr(a) - 4*b;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment