NCAR / ccpp-framework

Common Community Physics Package (CCPP)
http://www.dtcenter.org/community-code/common-community-physics-package-ccpp/
Other
26 stars 64 forks source link

Add "number of instances" dimension to module-level variables to support multi-instance usage #561

Open peverwhee opened 5 months ago

peverwhee commented 5 months ago

Description

In order to enable multiple instances, we'll need a new dimension on all module-level (host caps and suite caps) variables. This includes: _dynamic_constituents (host cap), _constituents_obj? (host cap)

Solution

Add/update the following:

User Interface Changes

Optional - host can now supply instance number to the cap routines (if not supplied, defaults to 1)

gold2718 commented 5 months ago

Note, there was some discussion of this in the PR to prebuild a while ago. See the comment about the proposed capgen implementation for a suggestion about CCPP standard names that could be used for this method.