Skip to content

Commit

Permalink
use a_max for diagnostic edmf area filter
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Jan 16, 2024
1 parent 378f53f commit 66a4ad9
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 66a4ad9

Please sign in to comment.