Use ymd instead of uninitialized date in timeInit for (unused?) optDate in alarmInit#1023
Merged
Merged
Conversation
…/ice_shr_methods.F90
Contributor
|
This looks like its only used if |
DeniseWorthen
approved these changes
May 7, 2025
Contributor
DeniseWorthen
left a comment
There was a problem hiding this comment.
The optDate is not used in UFS; this was found only because of the compiler warning.
dabail10
approved these changes
May 7, 2025
Contributor
|
Do we ever use timeInit? Anyhow, good catch. |
Contributor
Author
|
Private only to here...if running simulations to some ominous end date :) |
Contributor
|
There was code added to ice_comp_nuopc.F90 to handle writing a restart at the end of run, but not on a particular date. I think this might be handled by the mediator. |
Contributor
Author
|
Yes, in UFS tends to use |
anton-seaice
approved these changes
May 8, 2025
apcraig
approved these changes
May 8, 2025
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.
For detailed information about submitting Pull Requests (PRs) to the CICE-Consortium,
please refer to: https://github.com/CICE-Consortium/About-Us/wiki/Resource-Index#information-for-developers
PR checklist
Use ymd instead of uninitialized date in timeInit for (unused?) optDate in alarmInit
Denise Worthen, Nick Szapiro
Options aren't exercised in UFS regression testing. Any suggestions for how to test?
Address compiler warning and bug that
Warning: 'date' is used uninitialized [-Wuninitialized]. This impacts alarmInit when using optDate. I don't know that anyone does that, especially as it's not working properly. Part of ufs-community/ufs-weather-model#2703