Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Sep 28, 2023
1 parent edb7b9b commit 9930c29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/cache/precomputed_quantities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ values of the first updraft.
function output_diagnostic_sgs_quantities(Y, p, t)
thermo_params = CAP.thermodynamics_params(p.params)
(; ᶜρaʲs, ᶜtsʲs) = p
ᶠu³⁺ = p.ᶠu³ʲs[1]
ᶠu³⁺ = p.ᶠu³ʲs.:1
ᶜu⁺ = @. (C123(Y.c.uₕ) + C123(ᶜinterp(ᶠu³⁺)))
ᶜts⁺ = @. ᶜtsʲs[1]
ᶜa⁺ = @. draft_area(ᶜρaʲs[1], TD.air_density(thermo_params, ᶜts⁺))
ᶜts⁺ = @. ᶜtsʲs.:1
ᶜa⁺ = @. draft_area(ᶜρaʲs.:1, TD.air_density(thermo_params, ᶜts⁺))
return (; ᶜu⁺, ᶠu³⁺, ᶜts⁺, ᶜa⁺)
end
1 change: 0 additions & 1 deletion src/prognostic_equations/remaining_tendency.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ NVTX.@annotate function additional_tendency!(Yₜ, Y, p, t)
edmfx_sgs_flux_tendency!(Yₜ, Y, p, t, colidx, p.atmos.turbconv_model)
edmfx_nh_pressure_tendency!(Yₜ, Y, p, t, colidx, p.turbconv_model)
edmfx_tke_tendency!(Yₜ, Y, p, t, colidx, p.turbconv_model)
explicit_sgs_flux_tendency!(Yₜ, Y, p, t, colidx, p.turbconv_model)
precipitation_tendency!(Yₜ, Y, p, t, colidx, p.precip_model)
# NOTE: All ρa tendencies should be applied before calling this function
pressure_work_tendency!(Yₜ, Y, p, t, colidx, p.atmos.turbconv_model)
Expand Down

0 comments on commit 9930c29

Please sign in to comment.