Skip to content

Commit

Permalink
Merge pull request #2529 from CliMA/zs/diagedmf_area_filter
Browse files Browse the repository at this point in the history
use a_max for diagnostic edmf area filter
  • Loading branch information
szy21 authored Jan 16, 2024
2 parents 378f53f + 66a4ad9 commit dcbe507
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/prognostic_equations/edmfx_sgs_flux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ function edmfx_sgs_mass_flux_tendency!(
turbconv_model::DiagnosticEDMFX,
)

turbconv_params = CAP.turbconv_params(p.params)
a_max = CAP.max_area(turbconv_params)
n = n_mass_flux_subdomains(turbconv_model)
(; edmfx_sgsflux_upwinding) = p.atmos.numerics
(; ᶠu³, ᶜh_tot, ᶜspecific) = p.precomputed
Expand All @@ -126,7 +128,7 @@ function edmfx_sgs_mass_flux_tendency!(
min(
min(
draft_area(ᶜρaʲs.:($$j)[colidx], ᶜρʲs.:($$j)[colidx]),
FT(0.3),
a_max,
),
FT(0.02) / max(
Geometry.WVector(
Expand Down Expand Up @@ -161,7 +163,7 @@ function edmfx_sgs_mass_flux_tendency!(
ᶜρaʲs.:($$j)[colidx],
ᶜρʲs.:($$j)[colidx],
),
FT(0.3),
a_max,
),
FT(0.02) / max(
Geometry.WVector(
Expand Down

0 comments on commit dcbe507

Please sign in to comment.