diff --git a/src/standalone/Vegetation/solar_induced_fluorescence.jl b/src/standalone/Vegetation/solar_induced_fluorescence.jl index ae5fded511..122fab9541 100644 --- a/src/standalone/Vegetation/solar_induced_fluorescence.jl +++ b/src/standalone/Vegetation/solar_induced_fluorescence.jl @@ -76,6 +76,7 @@ function update_SIF!( T_freeze, photosynthesis_parameters, ) + (; ΔHJmax, To, θj, ϕ) = photosynthesis_parameters sif_parameters = sif_model.parameters @. SIF = compute_SIF_at_a_point( APAR, @@ -83,7 +84,7 @@ function update_SIF!( Vcmax25, R, T_freeze, - photosynthesis_parameters, + ΔHJmax, To, θj, ϕ, sif_parameters, ) end @@ -95,13 +96,9 @@ function compute_SIF_at_a_point( Vcmax25::FT, R::FT, T_freeze::FT, - photosynthesis_parameters::Union{ - FarquharParameters{FT}, - OptimalityFarquharParameters{FT}, - }, + ΔHJmax::FT, To::FT, θj::FT, ϕ::FT, sif_parameters::SIFParameters{FT}, ) where {FT} - (; ΔHJmax, To, θj, ϕ) = photosynthesis_parameters Jmax = max_electron_transport(Vcmax25, ΔHJmax, Tc, To, R) J = electron_transport(APAR, Jmax, θj, ϕ) (; kf, kd_p1, kd_p2, min_kd, kn_p1, kn_p2, kp, kappa_p1, kappa_p2) =