Skip to content

Commit

Permalink
Merge pull request #3404 from CliMA/he/model-hash
Browse files Browse the repository at this point in the history
fix: wrong atmos model hash should warn, not error
  • Loading branch information
Sbozzolo authored Oct 28, 2024
2 parents 6ec354f + b88d527 commit 01a1d9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/solver/type_getters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,7 @@ function get_state_restart(config::AtmosConfig, restart_file, atmos_model_hash)
atmos_model_hash_in_restart =
InputOutput.HDF5.read_attribute(reader.file, "atmos_model_hash")
if atmos_model_hash_in_restart != atmos_model_hash
error(
"Restart file $(restart_file) was constructed with a different AtmosModel",
)
@warn "Restart file $(restart_file) was constructed with a different AtmosModel"
end
end
return (Y, t_start)
Expand Down

0 comments on commit 01a1d9e

Please sign in to comment.