Skip to content

Migrate MAPL_AllocateCoupling callers to MAPL_FieldEmptyComplete #420

@tclune

Description

@tclune

Motivation

MAPL_AllocateCoupling is a legacy MAPL2 Base symbol being removed as part of the MAPL3 migration. The MAPL3 replacement is MAPL_FieldEmptyComplete (from mapl3g_Field_API), which has identical behavior.

Callers in this repo

  • ESMF/GOCART_GridComp/GOCART_GridCompMod.F90 line 1039 — inside AddFromExportToBundle_
  • ESMF/Aerosol_GridComp/Aerosol_GridComp.F90 line 198 — inside ForceAllocation

Changes required

  • Add use mapl3g_Field_API, only: MAPL_FieldEmptyComplete to each file
  • Replace call MAPL_AllocateCoupling(...) with call MAPL_FieldEmptyComplete(...)

Context

Part of the MAPL3 Base cleanup. The removal of MAPL_AllocateCoupling from MAPL Base cannot proceed until all external callers have been migrated. A corresponding MAPL PR will do the final removal once this and the GEOSgcm_GridComp companion issue are merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions