NCAR / ccpp-framework

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

Add optional attribute to Capgen/Prebuild #526

Closed dustinswales closed 1 month ago

dustinswales commented 5 months ago

Description

Currently the "optional" attribute is not supported by Capgen or Prebuild. Conditionally allocated fields needed by a scheme need to be accompanied with the allocation logic provided by the host. This is less than ideal for interoperability, since this requires host model information to access the conditionally allocated field within the scheme.

@DomHeinzeller @gold2718 @peverwhee @nusbaume

Solution

Introduce the optional attribute to Capgen (and Prebuild)

For the Schemes:

For the Caps:

climbfuji commented 4 months ago

capgen addressed in https://github.com/NCAR/ccpp-framework/pull/529. prebuild still needs to be done

climbfuji commented 1 month ago

Follow-up work required for capgen is described in https://github.com/NCAR/ccpp-framework/issues/566. The ccpp_prebuild.py implementation is complete when we merge #552.