diff --git a/src/solver/solve.jl b/src/solver/solve.jl index 829660629ab..7d071ff85f2 100644 --- a/src/solver/solve.jl +++ b/src/solver/solve.jl @@ -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)