Minor updates for single precision compilation

This commit is contained in:
Henry Weller
2023-04-11 18:07:47 +01:00
parent e40198353b
commit 96978e07f4
4 changed files with 6 additions and 6 deletions

View File

@ -66,7 +66,7 @@ void Foam::solvers::isothermalFilm::correctAlpha()
const surfaceScalarField alphaf const surfaceScalarField alphaf
( (
constrainedField(max(fvc::interpolate(alpha), 0.0)) constrainedField(max(fvc::interpolate(alpha), scalar(0)))
); );
const surfaceScalarField alpharAUf const surfaceScalarField alpharAUf

View File

@ -53,7 +53,7 @@ void Foam::solvers::isothermalFilm::predictAlpha()
void Foam::solvers::isothermalFilm::correctDelta() void Foam::solvers::isothermalFilm::correctDelta()
{ {
delta_ = max(alpha, 0.0)*VbyA; delta_ = max(alpha, scalar(0))*VbyA;
delta_.correctBoundaryConditions(); delta_.correctBoundaryConditions();
} }

View File

@ -82,8 +82,8 @@ Foam::contactAngleModels::dynamic::cosTheta
return cos return cos
( (
degToRad(theta0_) degToRad(theta0_)
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, 0.0) + degToRad(thetaRec_ - theta0_)*max(uCoeff, scalar(0))
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, 0.0) - degToRad(thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
); );
} }

View File

@ -74,8 +74,8 @@ Foam::contactAngleModels::gravitational::cosTheta
return cos return cos
( (
degToRad(theta0_) degToRad(theta0_)
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, 0.0) + degToRad(thetaRec_ - theta0_)*max(uCoeff, scalar(0))
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, 0.0) - degToRad(thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
); );
} }