Skip to content
Snippets Groups Projects
Commit 003ec000 authored by mattijs's avatar mattijs
Browse files

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

parent aa956f4b
Branches
Tags
No related merge requests found
...@@ -249,7 +249,7 @@ void atmAlphatkWallFunctionFvPatchScalarField::updateCoeffs() ...@@ -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 ...@@ -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 ...@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment