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 new "register" phase #572

Open peverwhee opened 2 weeks ago

peverwhee commented 2 weeks ago

Description

In addition to "init," "timestep_init", "run," "timestep_final," and "final", there will be a "register" phase that will be called by the host prior to grid set-up.

Solution

The register phase will be implemented as any other phase, with the bonus of also handling any run-time constituents for a scheme (this will replace the existing dyn_const_routine field in the metadata header).

dustinswales commented 2 weeks ago

@peverwhee This is a great idea and there is a need for such a phase for NOAA applications. A few examples come to mind where this would be useful.