Skip to content

Commit

Permalink
Test mode added for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBolibar committed Dec 18, 2023
1 parent 87c1afa commit a11f507
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/setup/config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function clean()
@everywhere using Reexport
@everywhere @reexport using Huginn
end # @eval
elseif nprocs() != procs && procs == 1
elseif nprocs() != procs && procs == 1 && !params.simulation_test_mode
@eval begin
rmprocs(workers(), waitfor=0)
println("Number of cores: ", nprocs())
Expand Down
6 changes: 4 additions & 2 deletions test/PDE_UDE_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function pde_solve_test(; rtol::F, atol::F, save_refs::Bool=false, MB::Bool=fals
simulation = SimulationParameters(use_MB=MB,
velocities=false,
tspan=(2010.0, 2015.0),
working_dir = Huginn.root_dir),
working_dir = Huginn.root_dir,
test_mode = true),
solver = SolverParameters(reltol=1e-12)
)

Expand Down Expand Up @@ -101,7 +102,8 @@ function TI_run_test!(save_refs::Bool = false; rtol::F, atol::F) where {F <: Abs
simulation = SimulationParameters(use_MB=true,
velocities=false,
tspan=(2010.0, 2015.0),
working_dir = Huginn.root_dir),
working_dir = Huginn.root_dir,
test_mode = true),
solver = SolverParameters(reltol=1e-8)
)
model = Model(iceflow = SIA2Dmodel(params), mass_balance = TImodel1(params))
Expand Down
3 changes: 2 additions & 1 deletion test/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function plot_analysis_flow_parameters_test()
simulation = SimulationParameters(use_MB=true,
use_iceflow= true,
tspan=(2000.0, 2015.0),
working_dir = working_dir),
working_dir = working_dir,
test_mode = true),
solver = SolverParameters(reltol=1e-8)
)

Expand Down

0 comments on commit a11f507

Please sign in to comment.