Bugfix: compilation

This commit is contained in:
Hrvoje Jasak 2016-04-27 19:00:19 +01:00
parent 31ce35e83a
commit 9eaec00f21

View file

@ -85,7 +85,7 @@ Foam::vector Foam::finiteRotation::eulerAngles(const tensor& rotT)
// Use mag to avoid negative value due to round-off
// HJ, 24/Feb/2016
// Bugfix: sqr. SS, 18/Apr/2016
const scalar c2 = sqrt(sqr(rotT.xx()) + sqr(rotT.xy())));
const scalar c2 = sqrt(sqr(rotT.xx()) + sqr(rotT.xy()));
// Calculate pitch angle
pitchAngle = atan2(-rotT.xz(), c2);