Skip to content

Commit

Permalink
fix sif model GPU compat
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisRenchon committed Aug 7, 2024
1 parent ac57809 commit afec268
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/standalone/Vegetation/solar_induced_fluorescence.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ Base.eltype(::SIFParameters{FT}) where {FT} = FT

struct Lee2015SIFModel{FT, SP <: SIFParameters{FT}} <: AbstractSIFModel{FT}
parameters::SP
function Lee2015SIFModel{FT}() where {FT}
parameters = SIFParameters{FT}()
new{FT, typeof(parameters)}(parameters)
end
end

function Lee2015SIFModel{FT}(
parameters = SIFParameters{FT},
) where {FT <: AbstractFloat}
return Lee2015SIFModel{eltype(parameters), typeof(parameters)}(parameters)
end

ClimaLand.name(model::AbstractSIFModel) = :sif
Expand Down

0 comments on commit afec268

Please sign in to comment.