Repository navigation
Start SCHISM from the hotstart.nc the boundary conditions write - #21
Merged
Merged
Conversation
check_hotstart looked for data.hotstart, which no longer exists since hotstart generation moved to boundary_conditions.hotstart_config. So hotstart.nc was written but ihot stayed 0 and SCHISM cold-started. The check now uses hotstart_config: it sets opt.ihot=1 when ihot is not set, keeps 1 or 2, and rejects an explicit ihot=0.
Contributor
|
Correctness finding: with |
Contributor
|
Follow-up: fixed in commit |
…tart-ihot # Conflicts: # HISTORY.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
boundary_conditions.hotstart_configenabled,hotstart.ncwas written butparam.nmlkeptihot = 0, so SCHISM cold-started and ignored the file.SCHISMConfig.check_hotstartstill looked fordata.hotstart, which no longer exists: hotstart generation moved intoboundary_conditions.hotstart_config.Changes
check_hotstartnow looks atdata.boundary_conditions.hotstart_config.opt.ihotis not set, it is set to 1: SCHISM starts from the hotstart state with its clock at zero.ihotof 1 or 2 set by the user is kept.ihot = 0together with a hotstart is an error, because SCHISM would ignore the file.docs/hotstart.mdexplainsihot.Checks
New tests in
tests/unit/test_hotstart_ihot.py. The full suite passes.