Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Espeer5 committed Jun 2, 2024
1 parent c9ab29b commit 328e3b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/integrated/soil_canopy_model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,7 @@ function make_update_boundary_fluxes(

area_index = p.canopy.hydraulics.area_index

labels =
land.canopy.hydraulics.h_stem > 0 ? [:stem, :leaf] :
[:leaf]
labels = land.canopy.hydraulics.h_stem > 0 ? [:stem, :leaf] : [:leaf]

above_ground_area_index = getproperty(area_index, labels[1])

Expand Down
2 changes: 1 addition & 1 deletion src/standalone/Vegetation/Canopy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function ClimaLand.make_update_aux(
T_canopy = canopy_temperature(canopy.energy, canopy, Y, p, t)

# update moisture stress
i_end = hydraulics.h_stem > 0 + 1
i_end = (hydraulics.h_stem > 0 ? 1 : 0) + 1
@. β = moisture_stress(ψ.:($$i_end) * ρ_l * grav, sc, pc)

# Update Rd, An, Vcmax25 (if applicable to model) in place
Expand Down
2 changes: 1 addition & 1 deletion src/standalone/Vegetation/canopy_boundary_fluxes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function canopy_boundary_fluxes!(
shf = p.canopy.energy.shf
lhf = p.canopy.energy.lhf
r_ae = p.canopy.energy.r_ae
i_end = canopy.hydraulics.h_stem > 0 + 1
i_end = (canopy.hydraulics.h_stem > 0 ? 1 : 0) + 1

# Compute transpiration, SHF, LHF
canopy_turbulent_fluxes = turbulent_fluxes(atmos, canopy, Y, p, t)
Expand Down

0 comments on commit 328e3b3

Please sign in to comment.