Skip to content

Commit f2897fc

Browse files
committed
fix
1 parent e14d7dd commit f2897fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/prognostic_equations/surface_temp.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ function surface_temp_tendency!(Yₜ, Y, p, t, slab::SlabOceanSST)
7878
end
7979

8080
# 2. Turbulent surface energy fluxes (sensible + latent heat) from surface to atmosphere
81-
if !isnothing(p.atmos.vertical_diffusion) ||
82-
!isnothing(p.atmos.turbconv_model)
81+
if !(p.atmos.disable_surface_flux_tendency)
8382
turb_e_flux_sfc_to_atm =
8483
Geometry.WVector.(
8584
p.precomputed.sfc_conditions.ρ_flux_h_tot
@@ -119,8 +118,7 @@ function surface_temp_tendency!(Yₜ, Y, p, t, slab::SlabOceanSST)
119118
# --- WATER BALANCE (if moisture is active) ---
120119
if !(p.atmos.moisture_model isa DryModel)
121120
# 1. Turbulent surface water fluxes (evaporation/condensation)
122-
if !isnothing(p.atmos.vertical_diffusion) ||
123-
!isnothing(p.atmos.turbconv_model)
121+
if !(p.atmos.disable_surface_flux_tendency)
124122
sfc_turb_w_flux =
125123
Geometry.WVector.(
126124
p.precomputed.sfc_conditions.ρ_flux_q_tot

0 commit comments

Comments
 (0)