Add one more barrier at end of run #603
Merged
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.
Description of changes
In CESM we ran into a funny issue where the ocean component was taking significantly longer to write output at the end of the run than the other components, and somehow the other components convinced the mediator that the model had finished successfully even though the ocean component was still doing stuff. This barrier makes everyone wait to catch up.
Specific notes
Contributors other than yourself, if any: @jedwards4b wrote the code, @gustavo-marques ran it (I have nothing to do with it but Gustavo is on PTO)
CMEPS Issues Fixed (include github issue #): None
Are changes expected to change answers? this should be bfb unless the baseline run did not write out the last MOM6 history file
Any User Interface Changes (namelist or namelist defaults changes)? No
Testing performed
Gustavo reran some cases where his last monthly history files from MOM6 were not being written out because the mediator was exiting successfully before FMS finished; I believe he verified the 47 months of output he got from both runs were bit-for-bit, plus he got the elusive 48th month of MOM6 output. AFAIK nobody has run any CESM tests with this.