mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: max: add explicit type. See #1726.
This commit is contained in:
@ -249,7 +249,7 @@ void atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
|
|
||||||
// lower bound values to avoid unrealistic
|
// lower bound values to avoid unrealistic
|
||||||
// negative temperatures on the ground
|
// negative temperatures on the ground
|
||||||
alphatw = max(alphatw, 0.01);
|
alphatw = max(alphatw, scalar(0.01));
|
||||||
|
|
||||||
fixedValueFvPatchField<scalar>::updateCoeffs();
|
fixedValueFvPatchField<scalar>::updateCoeffs();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -90,7 +90,7 @@ tmp<scalarField> atmNutUWallFunctionFvPatchScalarField::calcNut() const
|
|||||||
|
|
||||||
if (boundNut_)
|
if (boundNut_)
|
||||||
{
|
{
|
||||||
nutw = max(nutw, 0.0);
|
nutw = max(nutw, scalar(0.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
return tnutw;
|
return tnutw;
|
||||||
|
|||||||
@ -98,7 +98,7 @@ tmp<scalarField> atmNutkWallFunctionFvPatchScalarField::calcNut() const
|
|||||||
|
|
||||||
if (boundNut_)
|
if (boundNut_)
|
||||||
{
|
{
|
||||||
nutw = max(nutw, 0.0);
|
nutw = max(nutw, scalar(0.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
return tnutw;
|
return tnutw;
|
||||||
|
|||||||
Reference in New Issue
Block a user