bug fix: optimisation switch use

This commit is contained in:
Hrvoje Jasak 2015-06-26 19:09:03 +01:00
parent 4019296d15
commit ad6bce6a29

View file

@ -262,7 +262,7 @@ void Foam::leastSquaresVectors::makeLeastSquaresVectors() const
if if
( (
(lsPIn[faceI] & SfIn[faceI])/(mag(lsPIn[faceI])*mag(SfIn[faceI])) (lsPIn[faceI] & SfIn[faceI])/(mag(lsPIn[faceI])*mag(SfIn[faceI]))
< smallDotProdTol_ < smallDotProdTol_()
) )
{ {
// Least square points in the wrong direction for owner // Least square points in the wrong direction for owner
@ -273,7 +273,7 @@ void Foam::leastSquaresVectors::makeLeastSquaresVectors() const
if if
( (
(lsNIn[faceI] & SfIn[faceI])/(mag(lsNIn[faceI])*mag(SfIn[faceI])) (lsNIn[faceI] & SfIn[faceI])/(mag(lsNIn[faceI])*mag(SfIn[faceI]))
> -smallDotProdTol_ > -smallDotProdTol_()
) )
{ {
// Least square points in the wrong direction for owner. // Least square points in the wrong direction for owner.