Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Feb 21, 2025
1 parent 0b68f26 commit d4fc1a1
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions src/standalone/Soil/energy_hydrology.jl
Original file line number Diff line number Diff line change
Expand Up @@ -676,24 +676,23 @@ function ClimaLand.source!(
_LH_f0 = LP.LH_f0(earth_param_set)
_T_freeze = LP.T_freeze(earth_param_set)
_grav = LP.grav(earth_param_set)
τ = p.soil.sub_sfc_scratch
@. τ = thermal_time(
volumetric_heat_capacity(
p.soil.θ_l,
Y.soil.θ_i,
ρc_ds,
earth_param_set,
),
Δz,
p.soil.κ,
)

# Pass in physical constants as floats, to avoid issue broadcasting over fields and structs
@. dY.soil.ϑ_l +=
-phase_change_source(
p.soil.θ_l,
Y.soil.θ_i,
p.soil.T,
τ,
thermal_time(
volumetric_heat_capacity(
p.soil.θ_l,
Y.soil.θ_i,
ρc_ds,
earth_param_set,
),
Δz,
p.soil.κ,
),
ν,
θ_r,
hydrology_cm,
Expand All @@ -708,7 +707,16 @@ function ClimaLand.source!(
p.soil.θ_l,
Y.soil.θ_i,
p.soil.T,
τ,
thermal_time(
volumetric_heat_capacity(
p.soil.θ_l,
Y.soil.θ_i,
ρc_ds,
earth_param_set,
),
Δz,
p.soil.κ,
),
ν,
θ_r,
hydrology_cm,
Expand Down

0 comments on commit d4fc1a1

Please sign in to comment.