tensor::eigenValues: Test the magnitude of 'QQ' before dividing by it.
Resolves bug-report http://bugs.openfoam.org/view.php?id=2351
This commit is contained in:
parent
fcb789a267
commit
422f1770e0
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ Foam::vector Foam::eigenValues(const tensor& t)
|
|||
}
|
||||
|
||||
// Two identical roots and one distinct root
|
||||
else if (mag(PPP/QQ - 1) < SMALL)
|
||||
else if (mag(QQ) > SMALL && mag(PPP/QQ - 1) < SMALL)
|
||||
{
|
||||
scalar sqrtP = sqrt(P);
|
||||
scalar signQ = sign(Q);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue