-
Notifications
You must be signed in to change notification settings - Fork 64
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
Capgen in SCM: Bug fix for scheme ordering in non-run phases #629
Capgen in SCM: Bug fix for scheme ordering in non-run phases #629
Conversation
Write something into the initialization phase that makes them depend on each other? For example init call to scheme two depends on something being set in init call to scheme one, etc? If you were to add more than two schemes (e.g., five scheme inits), you increase the changes that they won't be in the correct order. |
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.
wow I'm surprised we hadn't run into this issue before! thanks @dustinswales
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 for fixing this
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.
I see that you added a bunch of _init
routines to a test suite and I was all set to complain but then you added the internal order check. I verified that this suite test fails if the mods in ccpp_suite.py are reverted.
I do have a variable name-change suggestion / request but it is not vital.
BTW, Why is there a branch bugfix/scheme_ordering_in_caps
on the NCAR repo?
@climbfuji @peverwhee Do we need another NOAA approval before merging? |
I'd say go ahead |
But your branch is behind develop, let's at least merge that in and rerun the tests |
… bugfix/scheme_ordering_in_caps
Description:
A python set is used to gather the schemes to call in the non CCPP run phases. However, python sets don't maintain the order, and hence the call order is wrong outside the run phase.
User interface changes?: No
Fixes: #628
Testing:
Expanded var_compatibility_test to have initialization phases and illustrate bug.
Not sure how to test that the order is unchanged?