Skip to content

Commit

Permalink
not sure about bug on GPU with SIF
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Aug 5, 2024
1 parent 83f6d96 commit 8f1fb89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/standalone/Vegetation/optimality_farquhar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,4 @@ function update_photosynthesis!(
@. Rd = dark_respiration(Vcmax25, β, f, ΔHRd, T, To, R)
@. An = net_photosynthesis(Ac, Aj, Rd, β)
end
Base.broadcastable(m::OptimalityFarquharParameters) = tuple(m)
7 changes: 5 additions & 2 deletions src/standalone/Vegetation/solar_induced_fluorescence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ function compute_SIF_at_a_point(
Vcmax25::FT,
R::FT,
T_freeze::FT,
photosynthesis_parameters,
sif_parameters,
photosynthesis_parameters::Union{
FarquharParameters,
OptimalityFarquharParameters,
},
sif_parameters::SIFParameters,
) where {FT}
(; ΔHJmax, To, θj, ϕ) = photosynthesis_parameters
Jmax = max_electron_transport(Vcmax25, ΔHJmax, Tc, To, R)
Expand Down

0 comments on commit 8f1fb89

Please sign in to comment.