Skip to content

Commit

Permalink
Extrapolate bottom bc in tke transport term
Browse files Browse the repository at this point in the history
  • Loading branch information
costachris committed Apr 26, 2024
1 parent f9c0ebc commit b3731ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/EDMF_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,12 @@ function compute_en_tendencies!(

wvec = CC.Geometry.WVector
aeK_bcs = (; bottom = CCO.Extrapolate(), top = CCO.Extrapolate())
prog_bcs = (; bottom = CCO.SetGradient(wvec(FT(0))), top = CCO.SetGradient(wvec(FT(0))))

if edmf.thermo_covariance_model isa TC.PrognosticThermoCovariances
prog_bcs = (; bottom = CCO.SetGradient(wvec(FT(0))), top = CCO.SetGradient(wvec(FT(0))))
else
prog_bcs = (; bottom = CCO.Extrapolate(), top = CCO.SetGradient(wvec(FT(0))))
end

If = CCO.InterpolateC2F(; aeK_bcs...)
∇f = CCO.GradientC2F(; prog_bcs...)
Expand Down

0 comments on commit b3731ea

Please sign in to comment.