Skip to content

Commit

Permalink
BUG: set default md.transient.ismovingfront=false
Browse files Browse the repository at this point in the history
  • Loading branch information
enigne committed Apr 8, 2024
1 parent 0f7778d commit a3f6ed3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/core/modules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ function ModelProcessor(md::model, solutionstring::Symbol) #{{{
if solutionstring===:StressbalanceSolution
analyses = Analysis[StressbalanceAnalysis()]
elseif solutionstring===:TransientSolution
analyses = Analysis[StressbalanceAnalysis(), MasstransportAnalysis(), LevelsetAnalysis()]
if md.transient.ismovingfront
analyses = Analysis[StressbalanceAnalysis(), MasstransportAnalysis(), LevelsetAnalysis()]
else
analyses = Analysis[StressbalanceAnalysis(), MasstransportAnalysis()]
end
else
error(solutionstring, " not supported by ModelProcessor")
end
Expand Down
2 changes: 1 addition & 1 deletion src/usr/classes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ mutable struct Transient
ismovingfront::Bool
end
function Transient() #{{{
return Transient( true, true, true, true, true)
return Transient( true, true, true, false, false)
end# }}}
function Base.show(io::IO, this::Transient)# {{{
IssmStructDisp(io, this)
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end

# AD test
@time include("testad.jl")
@time include("testad2.jl")
#@time include("testad2.jl")

# GPU test
#@time include("testGPU.jl")
Expand Down

0 comments on commit a3f6ed3

Please sign in to comment.