Skip to content

Capgen in SCM: DDT subfields into Group Caps#640

Merged
climbfuji merged 23 commits into
NCAR:developfrom
dustinswales:bugfix/full_array_ref_in_host_cap
May 22, 2025
Merged

Capgen in SCM: DDT subfields into Group Caps#640
climbfuji merged 23 commits into
NCAR:developfrom
dustinswales:bugfix/full_array_ref_in_host_cap

Conversation

@dustinswales

@dustinswales dustinswales commented Feb 4, 2025

Copy link
Copy Markdown
Member

Summary

Allow for sub components of a DDT to be passed into the Group caps from the Host cap .

Description

This PR adds recursive searching for DDTs when creating the call strings to the Group caps. This preserves the full reference in the call string.

Snippet from test_host_ccpp_cap.F90 before the change to ddt_library.py:
sfc_up_sw=phys_state%sfc_up_sw(col_start:col_end)

After, with full reference in call string:
sfc_up_sw=phys_state%fluxSW%sfc_up_sw(col_start:col_end)

User interface changes?: No

Fixes: #639

This is built on #646

Testing:
New testing added to pass subfields of DDT into scheme.

@climbfuji

Copy link
Copy Markdown
Collaborator

Since this is built on top of #637, I'll wait with reviewing until that PR is merged

@dustinswales dustinswales marked this pull request as draft February 6, 2025 16:54
@mkavulich mkavulich changed the title Capgen in SCM: DDT subfields into Group Caps DRAFT: Capgen in SCM: DDT subfields into Group Caps Feb 13, 2025
@dustinswales dustinswales marked this pull request as ready for review April 22, 2025 15:55
@dustinswales dustinswales changed the title DRAFT: Capgen in SCM: DDT subfields into Group Caps Capgen in SCM: DDT subfields into Group Caps Apr 22, 2025

@peverwhee peverwhee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one small testing question!

Comment thread test/var_compatibility_test/rad_sw.F90
@dustinswales

Copy link
Copy Markdown
Member Author

@climbfuji @peverwhee @gold2718
This is ready for review.

@peverwhee peverwhee left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @dustinswales !

@climbfuji climbfuji merged commit eae6c3d into NCAR:develop May 22, 2025
19 checks passed
@dustinswales dustinswales deleted the bugfix/full_array_ref_in_host_cap branch September 18, 2025 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants