Skip to content

Commit b3d7aa8

Browse files
committed
Remove closure in broadcast
1 parent bd470d1 commit b3d7aa8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/standalone/Vegetation/Canopy.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,11 @@ function ClimaLand.make_update_aux(
456456
(1 - exp(-(LAI + SAI))) #from CLM 5.0, Tech note 4.20
457457
p.canopy.radiative_transfer.G .= compute_G(G_Function, θs)
458458
RT = canopy.radiative_transfer
459-
banded_sw_d = (sw_d) -> sw_d .* RT.parameters.spectral_discretization.I
460-
@. SW_d = banded_sw_d(p.drivers.SW_d)
459+
banded_sw_d = (sw_d, intensities) -> sw_d .* intensities
460+
@. SW_d = banded_sw_d(
461+
p.drivers.SW_d,
462+
(RT.parameters.spectral_discretization.I,),
463+
)
461464
K = p.canopy.radiative_transfer.K
462465
@. K = extinction_coeff(p.canopy.radiative_transfer.G, θs)
463466
DOY =

0 commit comments

Comments
 (0)