Minor updates for single precision compilation
This commit is contained in:
@ -66,7 +66,7 @@ void Foam::solvers::isothermalFilm::correctAlpha()
|
||||
|
||||
const surfaceScalarField alphaf
|
||||
(
|
||||
constrainedField(max(fvc::interpolate(alpha), 0.0))
|
||||
constrainedField(max(fvc::interpolate(alpha), scalar(0)))
|
||||
);
|
||||
|
||||
const surfaceScalarField alpharAUf
|
||||
|
||||
@ -53,7 +53,7 @@ void Foam::solvers::isothermalFilm::predictAlpha()
|
||||
|
||||
void Foam::solvers::isothermalFilm::correctDelta()
|
||||
{
|
||||
delta_ = max(alpha, 0.0)*VbyA;
|
||||
delta_ = max(alpha, scalar(0))*VbyA;
|
||||
delta_.correctBoundaryConditions();
|
||||
}
|
||||
|
||||
|
||||
@ -82,8 +82,8 @@ Foam::contactAngleModels::dynamic::cosTheta
|
||||
return cos
|
||||
(
|
||||
degToRad(theta0_)
|
||||
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, 0.0)
|
||||
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, 0.0)
|
||||
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, scalar(0))
|
||||
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -74,8 +74,8 @@ Foam::contactAngleModels::gravitational::cosTheta
|
||||
return cos
|
||||
(
|
||||
degToRad(theta0_)
|
||||
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, 0.0)
|
||||
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, 0.0)
|
||||
+ degToRad(thetaRec_ - theta0_)*max(uCoeff, scalar(0))
|
||||
- degToRad(thetaAdv_ - theta0_)*min(uCoeff, scalar(0))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user