Skip to content
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

Implement ccpp_const_get_index in to_be_ccppized to avoid circular dependencies #135

Merged
merged 3 commits into from
Oct 17, 2024

Conversation

jimmielin
Copy link
Member

This routine can be shared by CAM-SIMA code (companion PR to be filled) and atmospheric_physics schemes by passing in the CCPP constituents pointer object.

This loop-based workaround is to avoid a dependency on cam_ccpp_cap which would in turn depend on all schemes creating a circular dependency.

Copy link
Collaborator

@nusbaume nusbaume left a comment

Choose a reason for hiding this comment

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

Thanks @jimmielin! This looks good to me (I just have one minor comment suggestion).

to_be_ccppized/ccpp_const_utils.F90 Outdated Show resolved Hide resolved
Copy link
Collaborator

@cacraigucar cacraigucar left a comment

Choose a reason for hiding this comment

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

I wanted to try using this in ZM, but right now I'm deep in something else, and don't want to "rock the boat" with this code. So I'm approving this for now, and if I run into difficulties when I go to use it (I don't expect I will), I can open an issue.

@jimmielin jimmielin changed the base branch from main to development October 17, 2024 19:01
@jimmielin jimmielin merged commit 67bb908 into ESCOMP:development Oct 17, 2024
1 check passed
jimmielin added a commit to ESCOMP/CAM-SIMA that referenced this pull request Oct 18, 2024
…hys) (#314)

Companion atmospheric_physics PR:
ESCOMP/atmospheric_physics#135

This avoids a circular dependency if schemes require const_get_index,
which presently depends on cam_ccpp_cap, which depends on individual
schemes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Tag
Development

Successfully merging this pull request may close these issues.

3 participants