GEOS-ESM / MAPL

MAPL is a foundation layer of the GEOS architecture, whose original purpose is to supplement the Earth System Modeling Framework (ESMF)
https://geos-esm.github.io/MAPL/
Apache License 2.0
24 stars 18 forks source link

enable propagation of shared info attributes #3128

Open tclune opened 3 weeks ago

tclune commented 3 weeks ago

An export stateitem may have info attribute that is to be accessed by connected import items. To this end, couplers must copy shared info attributes from their imports to their exports.

Currently we do not allow shared attrs to vary with time, so copying once is sufficient. Nominally this is during initialization of the coupler, but this does make certain assumptions about ordering. Namely, we must call the coupler init after the component that sets the value of the attribute, and before the initialization of the component(s) that consumes it.