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

Capgen constituents object needs public interface for minimum value array #472

Open
nusbaume opened this issue Jul 18, 2023 · 0 comments
Open

Comments

@nusbaume
Copy link
Collaborator

Description

In CAM-SIMA the dynamics-physics coupling layer uses a ccpp physics scheme directly (qneg) to ensure that all constituent or tracer values are at or above their minimum value, which is defined in the constituents object.

However, there currently doesn't appear to be an interface that would allow the host model to easily access this minimum value information. Thus it would be very beneficial if an interface was generated in the cap similar to the actual constituents array and constituents properties array.

Along with all of this, it would be good to make sure that the host model can set the minimum value for constituents it's providing if need be.

Solution

Implement a public minimum value array interface subroutine that is accessible outside of the CCPP cap itself.

Alternatives (optional)

Alternatively we could just have the host model re-construct this array using the constituent properties, but that feels sort of wasteful as it would likely require the host model to allocate a new array instead of just pointing to the array that already exists in the constituents object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant