diff --git a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmAlphatkWallFunction/atmAlphatkWallFunctionFvPatchScalarField.C b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmAlphatkWallFunction/atmAlphatkWallFunctionFvPatchScalarField.C index 2633d9ada496874714fbd6cea86a329a9528ef48..570544a68e49c777455519d0f30517bf9a1eaf06 100644 --- a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmAlphatkWallFunction/atmAlphatkWallFunctionFvPatchScalarField.C +++ b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmAlphatkWallFunction/atmAlphatkWallFunctionFvPatchScalarField.C @@ -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(); } diff --git a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutUWallFunction/atmNutUWallFunctionFvPatchScalarField.C b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutUWallFunction/atmNutUWallFunctionFvPatchScalarField.C index 9715f8db8a9147b601d5fc55229193fa8d33c188..2bbfcfb5410f0c6687c4ffbe5d8453b5fdb137cd 100644 --- a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutUWallFunction/atmNutUWallFunctionFvPatchScalarField.C +++ b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutUWallFunction/atmNutUWallFunctionFvPatchScalarField.C @@ -90,7 +90,7 @@ tmp<scalarField> atmNutUWallFunctionFvPatchScalarField::calcNut() const if (boundNut_) { - nutw = max(nutw, 0.0); + nutw = max(nutw, scalar(0.0)); } return tnutw; diff --git a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutkWallFunction/atmNutkWallFunctionFvPatchScalarField.C b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutkWallFunction/atmNutkWallFunctionFvPatchScalarField.C index 45c8f4614e44961633dd11271947b7cc74060c1d..79d9c57a2299e1083de4fa5a0d2218b33a298db1 100644 --- a/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutkWallFunction/atmNutkWallFunctionFvPatchScalarField.C +++ b/src/atmosphericModels/derivedFvPatchFields/wallFunctions/atmNutkWallFunction/atmNutkWallFunctionFvPatchScalarField.C @@ -98,7 +98,7 @@ tmp<scalarField> atmNutkWallFunctionFvPatchScalarField::calcNut() const if (boundNut_) { - nutw = max(nutw, 0.0); + nutw = max(nutw, scalar(0.0)); } return tnutw;