From a3f6ed3f1a65f2c81b8247635e5eb88bc1b20265 Mon Sep 17 00:00:00 2001 From: Cheng Gong Date: Mon, 8 Apr 2024 09:26:00 -0400 Subject: [PATCH] BUG: set default `md.transient.ismovingfront=false` --- src/core/modules.jl | 6 +++++- src/usr/classes.jl | 2 +- test/runtests.jl | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/modules.jl b/src/core/modules.jl index 80b06f5..7067c76 100644 --- a/src/core/modules.jl +++ b/src/core/modules.jl @@ -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 diff --git a/src/usr/classes.jl b/src/usr/classes.jl index dd48626..af835a7 100644 --- a/src/usr/classes.jl +++ b/src/usr/classes.jl @@ -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) diff --git a/test/runtests.jl b/test/runtests.jl index aa791f9..68f8d49 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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")