-
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: Multiple instances of local_name in Group Cap #631
Capgen in SCM: Multiple instances of local_name in Group Cap #631
Conversation
…ustinswales/ccpp-framework into bugfix/local_var_names_in_caps
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 have a suggesting for modifying the test a bit but it looks okay for scalar vars. It would be nice to also implement a DDT test as @peverwhee suggested.
@gold2718 Thanks for the suggestions. I added them to the tests. @peverwhee There are some various tests in the pipeline for DDTs (e.g. #637 #640), albeit stressing different things. I could extend those or add here. Thoughts? |
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!
@dustinswales I vote whatever's easiest for you! |
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.
👍
hi @dustinswales thanks for this PR! I did run the case that @cacraigucar and I ran into that prompted the issue I opened (#630) and it still failed until I updated an add_variable call in suite_objects.py. Would you like me to open a different PR for that or can we add that fix to this PR? I've included my change below. adding
(I confirmed that the fortran tests pass with this change) |
@peverwhee Thanks for testing this changes out. |
@peverwhee I added your change. Can you approve and merge when you get a change |
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.
sorry to add another question to your life, @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 @dustinswales !
Description:
Allow for multiple instances of the same local_name being used in the Group cap for two situations:
a) with different standard_names
b) in different DDTs .
User interface changes?: No
Fixes: #629
Testing:
Added to var_compatibility_test to exercise feature.
This PR contains changes included in #630