Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
0013284e
Commit
0013284e
authored
Nov 26, 2016
by
Henry Weller
Browse files
tensor::eigenValues: Test the magnitude of 'QQ' before dividing by it.
Resolves bug-report
http://bugs.openfoam.org/view.php?id=2351
parent
9c4653e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/Tensor/tensor/tensor.C
View file @
0013284e
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment