atmBoundaryLayer: updated for SP compilation

This commit is contained in:
Henry
2015-01-23 14:06:02 +00:00
parent 912c6e5926
commit ce539bcd13

View File

@ -71,7 +71,7 @@ atmBoundaryLayer::atmBoundaryLayer(const vectorField& p, const dictionary& dict)
flowDir_ /= mag(flowDir_);
zDir_ /= mag(zDir_);
Ustar_ = kappa_*Uref_/(log((Zref_ + z0_)/max(z0_, 0.001)));
Ustar_ = kappa_*Uref_/(log((Zref_ + z0_)/max(z0_, scalar(0.001))));
}
@ -134,7 +134,7 @@ tmp<vectorField> atmBoundaryLayer::U(const vectorField& p) const
scalarField Un
(
(Ustar_/kappa_)
*log(((zDir_ & p) - zGround_ + z0_)/max(z0_, 0.001))
*log(((zDir_ & p) - zGround_ + z0_)/max(z0_, scalar(0.001)))
);
return flowDir_*Un;