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 in hconfig.
  • If hconfig does not contain keystring,
    • return default if it is present in input arguments.
    • throw error otherwise.

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.
  • HConfig value does not change.
  • Program value can change.
  • Program value is recorded for checkpoint.