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
keystringexists inhconfig. - If
hconfigdoes not containkeystring,- return
defaultif 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
YAML value vs HConfig value vs Program value vs Checkpoint value.
- YAML value (file) does not change.
HConfigvalue does not change.- Program value can change.
- Program value is recorded for checkpoint.