Skip to content

Commit bdfa8c0

Browse files
authored
Merge pull request #4130 from CliMA/zs/hotfix
remove redundant computation of some gradient in prognostic edmf
2 parents 30f879c + d046ece commit bdfa8c0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/cache/prognostic_edmf_precomputed_quantities.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,6 @@ NVTX.@annotate function set_prognostic_edmf_precomputed_quantities_explicit_clos
300300
end
301301

302302
(; ᶜgradᵥ_θ_virt, ᶜgradᵥ_q_tot, ᶜgradᵥ_θ_liq_ice) = p.precomputed
303-
# First order approximation: Use environmental mean fields.
304-
@. ᶜgradᵥ_θ_virt = ᶜgradᵥ(ᶠinterp(TD.virtual_pottemp(thermo_params, ᶜts))) # ∂θv∂z_unsat
305-
ᶜq_tot = @. lazy(specific(Y.c.ρq_tot, Y.c.ρ))
306-
@. ᶜgradᵥ_q_tot = ᶜgradᵥ(ᶠinterp(ᶜq_tot)) # ∂qt∂z_sat
307-
@. ᶜgradᵥ_θ_liq_ice =
308-
ᶜgradᵥ(ᶠinterp(TD.liquid_ice_pottemp(thermo_params, ᶜts))) # ∂θl∂z_sat
309303
@. ᶜlinear_buoygrad = buoyancy_gradients( # TODO - do we need to modify buoyancy gradients based on NonEq + 1M tracers?
310304
BuoyGradMean(),
311305
thermo_params,

0 commit comments

Comments
 (0)