Porting: single precision requires casting in max

This commit is contained in:
Hrvoje Jasak 2019-05-10 14:27:58 +01:00
parent 8a64613197
commit 494ffcff89

View file

@ -53,9 +53,9 @@ mutSpalartAllmarasWallFunctionFvPatchScalarField::calcMut() const
const scalarField& rhow = turbModel.rho().boundaryField()[patchI];
const scalarField& muw = turbModel.mu().boundaryField()[patchI];
return max
return Foam::max
(
0.0,
scalar(0),
rhow*sqr(calcUTau(magGradU))/(magGradU + ROOTVSMALL) - muw
);
}