Skip to content

Commit

Permalink
replace complete_report by save_everystep
Browse files Browse the repository at this point in the history
  • Loading branch information
albangossard committed Feb 24, 2025
1 parent 992b9b3 commit cac0539
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Plots = "1"
ProgressMeter = "1"
Reexport = "1"
Revise = "3"
Sleipnir = "0.9"
Sleipnir = "0.8"
Tullio = "0.3"
julia = "1.10"

Expand Down
4 changes: 2 additions & 2 deletions src/simulations/predictions/prediction_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions test/plotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cac0539

Please sign in to comment.