Goal
Delete `base/MaplGrid.F90` which defines the `mapl_MaplGrid` module, as part of the ongoing effort to eliminate `base/`. This must be done before `MAPL_LocStreamMod` can be moved to `base3g/`.
Public symbols and migration targets
-
`MAPL_GridGet` — migrate all callers to `use MAPL, only: MAPL_GridGet` (via `mapl3g_GridGet`). This is the largest item, touching multiple repos.
-
`MAPL_DistGridGet` — only used by `MAPL_LocStreamMod`; migrate to `use mapl3g_DistGridGet`.
-
`MAPL_GetImsJms` — only used by `MAPL_LocStreamMod`; move implementation into `MAPL_LocStreamMod` as a private routine.
-
`MAPL_GridHasDE` — only used by `MAPL_VerticalMethods`; move implementation there as a private routine or into `geom/`.
-
`MaplGrid` type — only referenced in a commented-out line in `generic3g/InnerMetaComponent.F90`; effectively unused, can simply be dropped.
Callers of MAPL_GridGet (multi-repo)
Internal to MAPL:
- `state/StateMasking.F90`
- `GeomIO/pFIOServerBounds.F90`
- `base/MAPL_VerticalInterpMod.F90`
- `base/MAPL_VerticalMethods.F90`
- `base/SimpleBundleMod.F90`
- `base/MAPL_LocStreamMod.F90`
External repos:
- `GMAO_Shared`: `windfix.F90`
- `GOCART`: `SS2G_GridCompMod.F90`
- `GEOSgcm_GridComp`: `GEOS_GwdGridComp.F90`
Suggested PR sequence
- Migrate all `MAPL_GridGet` callers (MAPL + downstream repos) to `use MAPL`
- Migrate `MAPL_DistGridGet` in `MAPL_LocStreamMod` to `mapl3g_DistGridGet`
- Move `MAPL_GetImsJms` into `MAPL_LocStreamMod` as private
- Move `MAPL_GridHasDE` into `MAPL_VerticalMethods` as private
- Delete `MaplGrid.F90` and remove from `CMakeLists.txt`
Goal
Delete `base/MaplGrid.F90` which defines the `mapl_MaplGrid` module, as part of the ongoing effort to eliminate `base/`. This must be done before `MAPL_LocStreamMod` can be moved to `base3g/`.
Public symbols and migration targets
`MAPL_GridGet` — migrate all callers to `use MAPL, only: MAPL_GridGet` (via `mapl3g_GridGet`). This is the largest item, touching multiple repos.
`MAPL_DistGridGet` — only used by `MAPL_LocStreamMod`; migrate to `use mapl3g_DistGridGet`.
`MAPL_GetImsJms` — only used by `MAPL_LocStreamMod`; move implementation into `MAPL_LocStreamMod` as a private routine.
`MAPL_GridHasDE` — only used by `MAPL_VerticalMethods`; move implementation there as a private routine or into `geom/`.
`MaplGrid` type — only referenced in a commented-out line in `generic3g/InnerMetaComponent.F90`; effectively unused, can simply be dropped.
Callers of MAPL_GridGet (multi-repo)
Internal to MAPL:
External repos:
Suggested PR sequence