MAPL3 MAPL_ResourceGet - GEOS-ESM/MAPL GitHub Wiki
MAPL3 will use the new ESMF_HConfig
type to store resource values that previously the ESMF_Config
type stored.
Behavior
Sketch
MAPL_ResourceGet
(MRG) =>ESMF_HConfigAs
...- MRG gets value if
keystring
exists inhconfig
. - If
hconfig
does not containkeystring
,- return
default
if it is present in input arguments. - throw error otherwise.
- return
Plan
- New module for low level
- High level in
MAPL_Generic
- Low-level returns a non-optional string for the parameter.
- Return information about hconfig vs default value.
- High-level tracks component.
- High-level tracks which resources have been queried already.
Key Ideas
HConfig
value vs Program value vs Checkpoint value.
YAML value vs - YAML value (file) does not change.
HConfig
value does not change.- Program value can change.
- Program value is recorded for checkpoint.