-
Notifications
You must be signed in to change notification settings - Fork 155
MODERN_DIAG_MANAGER: Improvements to the diag_table.yaml format #1731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… prepare for the addition of anchor support in the parser
… code more robust and avoid out of bounds issues
parser/yaml_parser.F90
Outdated
| case (MAX_LEVELS_REACH) | ||
| call mpp_error(FATAL, "The file:"//trim(filename)//" has reached the maximum number of level!"//& | ||
| "Try setting -DMAX_LEVELS to a number greater than the current limit.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defining the macro requires a recompile and the message should say that. Is there a way to make MAX_LEVELS a runtime option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I’ve updated the error message.
Yes, making MAX_LEVELS a runtime option would be cleaner.
I didn’t pursue it yet since none of our current YAMLs come close to that limit, but I've open an issue to work on that in a future release: #1755
Description
Refactor the fms_yaml_parser code to enhance readability, maintainability, and in-code documentation
Adds support for yaml anchors in fms_yaml_parser (Fixes #1677)
Adds code to allow grouping variables by module in the diag yaml (Fixes #1678)
How Has This Been Tested?
CI including new tests!
Checklist:
make distcheckpasses