Skip to content
Snippets Groups Projects
Commit ce539bcd authored by Henry's avatar Henry
Browse files

atmBoundaryLayer: updated for SP compilation

parent 912c6e59
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ atmBoundaryLayer::atmBoundaryLayer(const vectorField& p, const dictionary& dict) ...@@ -71,7 +71,7 @@ atmBoundaryLayer::atmBoundaryLayer(const vectorField& p, const dictionary& dict)
flowDir_ /= mag(flowDir_); flowDir_ /= mag(flowDir_);
zDir_ /= mag(zDir_); 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 ...@@ -134,7 +134,7 @@ tmp<vectorField> atmBoundaryLayer::U(const vectorField& p) const
scalarField Un scalarField Un
( (
(Ustar_/kappa_) (Ustar_/kappa_)
*log(((zDir_ & p) - zGround_ + z0_)/max(z0_, 0.001)) *log(((zDir_ & p) - zGround_ + z0_)/max(z0_, scalar(0.001)))
); );
return flowDir_*Un; return flowDir_*Un;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment