Skip to content

Commit

Permalink
CHG: working on transient inputs, still a long way to go
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuMorlighem committed Jul 5, 2024
1 parent d3b0455 commit 41be0cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/core/modules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ function FetchDataToInput(md::model,inputs::Inputs,elements::Vector{Tria},data::
end
return nothing
end#}}}
function FetchDataToInput(md::model, inputs::Inputs, elements::Vector{Tria}, data::Matrix{Float64}, enum::IssmEnum) #{{{
for i in 1:length(elements)
#InputCreate(elements[i],inputs,data,enum)
error("TransientInput not supported yet")
end
return nothing
end#}}}
function ModelProcessor(md::model, solutionstring::Symbol) #{{{

#Initialize structures
Expand Down
4 changes: 2 additions & 2 deletions src/usr/classes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ end# }}}
# }}}
#Surfaceforcings {{{
mutable struct SMBforcings
mass_balance::Vector{Float64}
mass_balance::Union{Vector{Float64},Matrix{Float64}}
end
function SMBforcings() #{{{
return SMBforcings( Vector{Float64}(undef,0))
return SMBforcings(Vector{Float64}(undef, 0))
end# }}}
function Base.show(io::IO, this::SMBforcings)# {{{
IssmStructDisp(io, this)
Expand Down

0 comments on commit 41be0cb

Please sign in to comment.