Fix bug in comparebfb.csh when restart data is missing in both test and base directories #311
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.
If no restart files are present in neither
base_dir
nortest_dir
, the scriptcomparebfb.csh
would simply exit with the errorwith error code 1 (csh default I guess) and so the script
cice.test
would reportwhich is incorrect. I just added
set nonomatch
before the foreach so that if no restart files are present the script does not error but correctly reports :Developer(s): Philippe Blain
Please suggest code Pull Request reviewers in the column at right. @apcraig
Are the code changes bit for bit, different at roundoff level, or more substantial? BFB
Please include the link to test results or paste the summary block from the bottom of the testing output below.
No tests
Does this PR create or have dependencies on Icepack or any other models?
No
Is the documentation being updated with this PR? (Y/N) No
If not, does the documentation need to be updated separately at a later time? (Y/N) No
Note: "Documentation" includes information on the wiki and .rst files in doc/source/,
which are used to create the online technical docs at https://readthedocs.org/projects/cice-consortium-cice/.
I stumbled upon that bug because I was running the model for just 3 time steps with a custom test suite and had forgotten to set the
dump_last
namelist variable to true, which caused no restart files to be written since I was running for less than a day.