COMP: max: add explicit type. See #1726.

This commit is contained in:
mattijs
2020-06-10 12:21:00 +01:00
parent aa956f4b05
commit 003ec000e0
3 changed files with 3 additions and 3 deletions

View File

@ -249,7 +249,7 @@ void atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs()
// lower bound values to avoid unrealistic
// negative temperatures on the ground
alphatw = max(alphatw, 0.01);
alphatw = max(alphatw, scalar(0.01));
fixedValueFvPatchField<scalar>::updateCoeffs();
}

View File

@ -90,7 +90,7 @@ tmp<scalarField> atmNutUWallFunctionFvPatchScalarField::calcNut() const
if (boundNut_)
{
nutw = max(nutw, 0.0);
nutw = max(nutw, scalar(0.0));
}
return tnutw;

View File

@ -98,7 +98,7 @@ tmp<scalarField> atmNutkWallFunctionFvPatchScalarField::calcNut() const
if (boundNut_)
{
nutw = max(nutw, 0.0);
nutw = max(nutw, scalar(0.0));
}
return tnutw;