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

Add constituent minimum values array interface #585

Open
peverwhee opened this issue Aug 28, 2024 · 0 comments
Open

Add constituent minimum values array interface #585

peverwhee opened this issue Aug 28, 2024 · 0 comments

Comments

@peverwhee
Copy link
Collaborator

Description

Add interface to host cap to retrieve constituent minimum values array (for use by host model)

Solution

This should be a straight-forward update to

  1. src/ccpp_constituent_prop_mod.F90: add new procedure field_min_value_ptr that returns a pointer to the minimum values array (vars_minvalue)
  2. scripts/constituents.py: modify write_host_routines() to write a new routine (<hostname>_constituent_min_values).
  3. scripts/host_cap.py: add the new routine name

The final generated code will look something like:

function <hostname>_constituent_min_values() result(min_values_ptr)

   ! Return pointer to minimum values array

   ! Dummy argument
   real(kind_phys), pointer :: min_values_ptr(:)

   min_values_ptr => <hostname>_constituents_obj%field_min_value_ptr()

end function <hostname>_constituent_min_values

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