Porting: single precision requires casting in max
This commit is contained in:
parent
8a64613197
commit
494ffcff89
1 changed files with 2 additions and 2 deletions
|
@ -53,9 +53,9 @@ mutSpalartAllmarasWallFunctionFvPatchScalarField::calcMut() const
|
||||||
const scalarField& rhow = turbModel.rho().boundaryField()[patchI];
|
const scalarField& rhow = turbModel.rho().boundaryField()[patchI];
|
||||||
const scalarField& muw = turbModel.mu().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
|
rhow*sqr(calcUTau(magGradU))/(magGradU + ROOTVSMALL) - muw
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue