Skip to content

Remove zero-caller symbols from Base_Base: MAPL_GenXYOffset, MAPL_SetPointer, MAPL_RemapBounds, MAPL_PinFlagSet/Get (#4817)#4818

Merged
tclune merged 1 commit into
release/MAPL-v3from
feature/4817-remove-zero-caller-symbols
May 9, 2026
Merged

Remove zero-caller symbols from Base_Base: MAPL_GenXYOffset, MAPL_SetPointer, MAPL_RemapBounds, MAPL_PinFlagSet/Get (#4817)#4818
tclune merged 1 commit into
release/MAPL-v3from
feature/4817-remove-zero-caller-symbols

Conversation

@tclune
Copy link
Copy Markdown
Collaborator

@tclune tclune commented May 9, 2026

Summary

Remove five public symbols (nine procedures total) from base/Base/Base_Base.F90 and base/Base/Base_Base_implementation.F90 — all confirmed to have zero external callers anywhere in the GEOSgcm ecosystem.

Closes #4817

Symbols removed

  • MAPL_GenXYOffset — detects PC/PE and DC/DE grid offset from lon/lat arrays
  • MAPL_SetPointer (x2: MAPL_SetPointer2DR4, MAPL_SetPointer3DR4) — points R4 array pointer at named field in ESMF state
  • MAPL_RemapBounds (x3: MAPL_RemapBoundsFull_3dr4, MAPL_RemapBounds_3dr4, MAPL_RemapBounds_3dr8) — remaps lower bounds of 3D array pointer
  • MAPL_PinFlagSet / MAPL_PinFlagGet — get/set a module-level ESMF_PIN_FLAG variable; also removes the pinflag_global module variable

Also inlines the default pin flag value (ESMF_PIN_DE_TO_SSI_CONTIG) directly into MAPL_FieldAllocCommit, which was the only remaining internal caller of MAPL_PinFlagGet. If/when SSI pinning is needed in MAPL3 it should be properly integrated into v3 FieldCreate/FieldEmptyComplete rather than via a module variable.

Related

Remove MAPL_GenXYOffset, MAPL_SetPointer (x2), MAPL_RemapBounds (x3),
MAPL_PinFlagSet, MAPL_PinFlagGet — all confirmed zero external callers.

Also remove the pinflag_global module variable and inline the default
value (ESMF_PIN_DE_TO_SSI_CONTIG) directly in MAPL_FieldAllocCommit,
which was the only remaining internal caller of MAPL_PinFlagGet.

If/when SSI pinning is needed in MAPL3 it should be properly integrated
into v3 FieldCreate/FieldEmptyComplete rather than via a module variable.

Part of MAPL3 Base migration (#4805).
@tclune tclune requested a review from a team as a code owner May 9, 2026 13:13
@github-actions github-actions Bot added the 📈 MAPL3 MAPL 3 Related label May 9, 2026
@mathomp4 mathomp4 added the 0 Diff The changes in this pull request have verified to be zero-diff with the target branch. label May 9, 2026
@tclune tclune added the Changelog Skip Skips the Changelog Enforcer label May 9, 2026
@tclune tclune merged commit 0e7ed0a into release/MAPL-v3 May 9, 2026
67 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 Diff The changes in this pull request have verified to be zero-diff with the target branch. Changelog Skip Skips the Changelog Enforcer 📈 MAPL3 MAPL 3 Related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants