Skip to content

Commit b3d0e61

Browse files
authored
lai and T soil, ghf fix (#1195)
1 parent f19f105 commit b3d0e61

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/diagnostics/default_diagnostics.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ function default_diagnostics(
359359
"trans",
360360
"msf",
361361
"lwp",
362+
"tsoil",
363+
"lai",
362364
"iwc",
363365
"swd",
364366
"lwd",

src/integrated/soil_snow_model.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ see equation 24 and 25, with k=N, of Best et al, Geosci. Model Dev., 4, 677–69
200200
201201
However, this is for a multi-layer snow model, with
202202
T_snow and Δz_snow related to the bottom layer.
203-
It's not clear this is ideal when we have a single layer snow model. We can revisit this.
203+
We only have a single layer snow model, and using Δz_snow = height of snow leads to a very small flux when the snow is deep.
204+
Due to this, we cap Δz_snow at 10 cm.
204205
"""
205206
function update_soil_snow_ground_heat_flux!(
206207
p,
@@ -215,7 +216,7 @@ function update_soil_snow_ground_heat_flux!(
215216
κ_soil = ClimaLand.Domains.top_center_to_surface(p.soil.κ)
216217

217218
# Depths
218-
Δz_snow = p.snow.z_snow
219+
Δz_snow = @. lazy(max(p.snow.z_snow, FT(0.1)))
219220
Δz_soil = soil_domain.fields.Δz_top
220221

221222
# Temperatures

0 commit comments

Comments
 (0)