-
Notifications
You must be signed in to change notification settings - Fork 67
[feature/capgen-v1]: Test for issue 772 in capgen v0, fix for issue 774 (name collision in capgen v1) #776
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
Merged
climbfuji
merged 9 commits into
feature/capgen-v1
from
feature/claude_followups_and_protected_attribute_PLUS_issues_772_774
Aug 10, 2026
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9cb4541
Reorganize bookkeeping of future/deferred work so that it travels bet…
climbfuji e68b6fb
Add missing check for protected variables (per metadata), add reminde…
climbfuji 7fa6664
Update doc/followups.md
climbfuji 1df5ea4
Update doc/followups.md from local tasklist on dutchman
climbfuji 063cbc3
Fix for issue 774 - host module import name clash with control variab…
climbfuji 5993b85
Update doc/followups.md
climbfuji 857ca47
Merge branch 'feature/capgen-v1' into feature/claude_followups_and_pr…
climbfuji c145e64
Update capgen/generator/group_cap.py
climbfuji cbe7709
Update docstring in capgen/generator/group_cap.py
climbfuji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| ! Test parameterization whose local names collide with other identifiers | ||
| ! in the group cap: <cld_ice_array> is also the local name of the cloud | ||
| ! ice constituent (see cld_ice) and <ncols> is also the local name of the | ||
| ! host model horizontal dimension. Both name a scheme-supplied | ||
| ! interstitial here, so capgen must rename the group-cap locals. | ||
| ! | ||
|
|
||
| module cld_shadow | ||
|
|
||
| use ccpp_kinds, only: kind_phys | ||
|
|
||
| implicit none | ||
| private | ||
|
|
||
| public :: cld_shadow_run | ||
|
|
||
| contains | ||
|
|
||
| !> \section arg_table_cld_shadow_run Argument Table | ||
| !! \htmlinclude arg_table_cld_shadow_run.html | ||
| !! | ||
| subroutine cld_shadow_run(ncol, timestep, cld_ice_array, ncols, & | ||
| errmsg, errflg) | ||
|
|
||
| integer, intent(in) :: ncol | ||
| real(kind_phys), intent(in) :: timestep | ||
| real(kind_phys), intent(out) :: cld_ice_array(:,:) | ||
| real(kind_phys), intent(out) :: ncols(:) | ||
| character(len=512), intent(out) :: errmsg | ||
| integer, intent(out) :: errflg | ||
| !---------------------------------------------------------------- | ||
|
|
||
| errmsg = '' | ||
| errflg = 0 | ||
|
|
||
| cld_ice_array(:ncol,:) = timestep | ||
| ncols(:ncol) = real(ncol, kind_phys) | ||
|
|
||
| end subroutine cld_shadow_run | ||
|
|
||
| end module cld_shadow |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| [ccpp-table-properties] | ||
| name = cld_shadow | ||
| type = scheme | ||
| [ccpp-arg-table] | ||
| name = cld_shadow_run | ||
| type = scheme | ||
| [ ncol ] | ||
| standard_name = horizontal_dimension | ||
| type = integer | ||
| units = count | ||
| dimensions = () | ||
| intent = in | ||
| [ timestep ] | ||
| standard_name = time_step_for_physics | ||
| long_name = time step | ||
| units = s | ||
| dimensions = () | ||
| type = real | kind = kind_phys | ||
| intent = in | ||
| [ cld_ice_array ] | ||
| standard_name = cld_shadow_scratch_array | ||
| units = s | ||
| type = real | kind = kind_phys | ||
| dimensions = (horizontal_dimension, vertical_layer_dimension) | ||
| intent = out | ||
| [ ncols ] | ||
| standard_name = cld_shadow_column_scratch | ||
| units = count | ||
| type = real | kind = kind_phys | ||
| dimensions = (horizontal_dimension) | ||
| intent = out | ||
| [ errmsg ] | ||
| standard_name = ccpp_error_message | ||
| long_name = Error message for error handling in CCPP | ||
| units = none | ||
| dimensions = () | ||
| type = character | ||
| kind = len=512 | ||
| intent = out | ||
| [ errflg ] | ||
| standard_name = ccpp_error_code | ||
| long_name = Error flag for error handling in CCPP | ||
| units = 1 | ||
| dimensions = () | ||
| type = integer | ||
| intent = out |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.