Skip to content

Commit

Permalink
Merge pull request #1399 from CliMA/extrapolate_bottom_bc
Browse files Browse the repository at this point in the history
Extrapolate bottom bc in tke transport term
  • Loading branch information
costachris authored Apr 29, 2024
2 parents f9c0ebc + ce6c77e commit 916e4d7
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 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 916e4d7

Please sign in to comment.