Skip to content

Commit

Permalink
Save final state when simulation crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Dec 18, 2023
1 parent 496cd9d commit 6c92a8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/solver/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function solve_atmos!(simulation)
return AtmosSolveResults(sol, :success, walltime)
end
catch ret_code
CA.save_restart_func(integrator, simulation.output_dir)
@error "ClimaAtmos simulation crashed. Stacktrace for failed simulation" exception =
(ret_code, catch_backtrace())
return AtmosSolveResults(nothing, :simulation_crashed, nothing)
Expand Down

0 comments on commit 6c92a8c

Please sign in to comment.