Add optional attribute to Capgen/Prebuild #526
Labels
capgen
bugs, requests, etc. that involve ccpp_capgen
capgen-unification
ccpp_prebuild
bugs, requests, etc. that involve ccpp_prebuild
enhancement
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:
In the physics schemes, we test for the presence of optional variables, not for the equivalent of the active attribute in the host model - this removes the dependency of the physics on the host model allocation (why should a scheme have to know)
For the Caps:
The text was updated successfully, but these errors were encountered: