GEOS-ESM / GEOS-ESM/GEOSgcm_GridComp

Migrate MAPL_AllocateCoupling caller in GEOSgigatraj to MAPL_FieldEmptyComplete

Open Beginner friendly
#1,401 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

MAPL3
Dominant language
Fortran
Stars
10
Forks
13
Avg merge
17h 35m
Merged PRs (30d)
14

Description

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.

Caller in this repo

  • GEOSgigatraj_GridComp/GEOS_GigatrajGridComp.F90 line 382

Changes required

  • Add use mapl3g_Field_API, only: MAPL_FieldEmptyComplete to the 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 GOCART companion issue are merged.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open GEOSgigatraj_GridComp/GEOS_GigatrajGridComp.F90 and inspect the caller at line 382. Add the specified MAPL3 import and replace the legacy call with MAPL_FieldEmptyComplete, then verify this file no longer calls MAPL_AllocateCoupling. Done means the caller is migrated so the MAPL Base removal can proceed.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Refactor
Difficulty
1/5
Estimated time
Under an hour
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
88/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.