Skip to content

Commit

Permalink
Update Runoff.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck authored Jun 16, 2024
1 parent eeab15c commit fe02377
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/standalone/Soil/Runoff/Runoff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ Currently approximates i_c = -K_sat at the surface.
"""
function soil_infiltration_capacity(model::RichardsModel, Y, p)
surface_space = model.domain.space.surface
@. p.soil.subsfc_scratch = -Ksat
@. p.soil.subsfc_scratch = -1 * model.parameters.K_sat
return ClimaLand.Soil.get_top_surface_field(
p.soil.subsfc_scratch,
surface_space,
Expand All @@ -238,10 +238,10 @@ are the functions which adjust the conductivity for the presence ice and taking
account the temperature dependence of the viscosity of water.
"""
function soil_infiltration_capacity(model::EnergyHydrology, Y, p)
(; Ksat, θ_r, Ω, γ, γT_ref) = model.parameters
(; K_sat, θ_r, Ω, γ, γT_ref) = model.parameters
surface_space = model.domain.space.surface
@. p.soil.subsfc_scratch =
-Ksat *
-K_sat *
impedance_factor(Y.soil.θ_i / (p.soil.θ_l + Y.soil.θ_i - θ_r), Ω) *
viscosity_factor(p.soil.T, γ, γT_ref)
return ClimaLand.Soil.get_top_surface_field(
Expand Down

0 comments on commit fe02377

Please sign in to comment.