From cac053982a2480c2d808309757e7b351cd4af708 Mon Sep 17 00:00:00 2001 From: Alban Gossard Date: Mon, 24 Feb 2025 21:51:58 +0100 Subject: [PATCH] replace complete_report by save_everystep --- Project.toml | 2 +- src/simulations/predictions/prediction_utils.jl | 4 ++-- test/plotting.jl | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index c5c1679..3a0dc87 100644 --- a/Project.toml +++ b/Project.toml @@ -37,7 +37,7 @@ Plots = "1" ProgressMeter = "1" Reexport = "1" Revise = "3" -Sleipnir = "0.9" +Sleipnir = "0.8" Tullio = "0.3" julia = "1.10" diff --git a/src/simulations/predictions/prediction_utils.jl b/src/simulations/predictions/prediction_utils.jl index fc8ba3f..d0c8a7d 100644 --- a/src/simulations/predictions/prediction_utils.jl +++ b/src/simulations/predictions/prediction_utils.jl @@ -93,7 +93,7 @@ function simulate_iceflow_PDE!( model.iceflow.S .= glacier.B .+ model.iceflow.H # Update simulation results - results = Sleipnir.create_results(simulation, glacier_idx[], iceflow_sol; light=!params.simulation.complete_report) + results = Sleipnir.create_results(simulation, glacier_idx[], iceflow_sol; light=!params.solver.save_everystep) return results end @@ -200,7 +200,7 @@ function simulate_iceflow_PDE( model.iceflow.S = glacier.B .+ model.iceflow.H # Update simulation results - results = Sleipnir.create_results(simulationCopy, glacier_idx[], iceflow_sol; light=!params.simulation.complete_report) + results = Sleipnir.create_results(simulationCopy, glacier_idx[], iceflow_sol; light=!params.solver.save_everystep) return results end diff --git a/test/plotting.jl b/test/plotting.jl index d65a48b..f3b9a2b 100644 --- a/test/plotting.jl +++ b/test/plotting.jl @@ -56,9 +56,8 @@ function make_thickness_video_test() workers = 1, rgi_paths = rgi_paths, ice_thickness_source = "Farinotti19", - complete_report = true, ), - solver = SolverParameters(reltol = 1e-8) + solver = SolverParameters(reltol = 1e-8, save_everystep = true) ) model = Model(