Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Jun 21, 2024
1 parent 62a3db2 commit 8e712e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/integrated/soil_canopy_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ function SoilCanopyModel{FT}(;
)
else #no runoff model
@info("Warning: No runoff model is being used; zero runoff generated.")
top_bc = ClimaLand.Soil.AtmosDrivenFluxBC(
atmos,
CanopyRadiativeFluxes{FT}(),
)
top_bc =
ClimaLand.Soil.AtmosDrivenFluxBC(atmos, CanopyRadiativeFluxes{FT}())
end
zero_flux = Soil.HeatFluxBC((p, t) -> 0.0)
boundary_conditions = (;
Expand Down
7 changes: 5 additions & 2 deletions src/standalone/Soil/Runoff/Runoff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,11 @@ function soil_infiltration_capacity(model::EnergyHydrology, Y, p)
surface_space = model.domain.space.surface
@. p.soil.subsfc_scratch =
-K_sat *
impedance_factor(Y.soil.θ_i / (p.soil.θ_l + Y.soil.θ_i - θ_r), Ω) *
viscosity_factor(p.soil.T, γ, γT_ref)
ClimaLand.Soil.impedance_factor(
Y.soil.θ_i / (p.soil.θ_l + Y.soil.θ_i - θ_r),
Ω,
) *
ClimaLand.Soil.viscosity_factor(p.soil.T, γ, γT_ref)
return ClimaLand.Soil.get_top_surface_field(
p.soil.subsfc_scratch,
surface_space,
Expand Down

0 comments on commit 8e712e5

Please sign in to comment.