ESMF/Shared/ReplenishAlarm.F90 uses MAPL_MetaComp and MAPL_GetObjectFromGC from the legacy MAPL_GenericMod, which is targeted for deletion. The fix is to replace the three MAPL_GetResource(MAPL,...) calls with MAPL_GridCompGetResource(gc,...) which takes the ESMF_GridComp directly, eliminating the need for the MAPL_MetaComp handle and the MAPL_GetObjectFromGC call entirely. Also update the include to MAPL.h.
ESMF/Shared/ReplenishAlarm.F90 uses MAPL_MetaComp and MAPL_GetObjectFromGC from the legacy MAPL_GenericMod, which is targeted for deletion. The fix is to replace the three MAPL_GetResource(MAPL,...) calls with MAPL_GridCompGetResource(gc,...) which takes the ESMF_GridComp directly, eliminating the need for the MAPL_MetaComp handle and the MAPL_GetObjectFromGC call entirely. Also update the include to MAPL.h.