Skip to content

Commit

Permalink
Fill crashed simulation with NaNs
Browse files Browse the repository at this point in the history
  • Loading branch information
nefrathenrici committed Dec 5, 2023
1 parent 9e93148 commit 5f03aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/atmos_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function run_forward_model(atmos_config::CA.AtmosConfig)
integrator = CA.get_integrator(atmos_config)
sol_res = CA.solve_atmos!(integrator)
if sol_res.ret_code == :simulation_crashed
# TODO: Handle error properly - overwrite data
!isnothing(sol_res.sol) && sol_res.sol .= eltype(sol_res.sol)(NaN)

Check warning on line 51 in src/atmos_interface.jl

View check run for this annotation

Codecov / codecov/patch

src/atmos_interface.jl#L51

Added line #L51 was not covered by tests
error(
"The ClimaAtmos simulation has crashed. See the stack trace for details.",
)
Expand Down

0 comments on commit 5f03aef

Please sign in to comment.