Skip to content

Commit 5a8fb3c

Browse files
authored
Migrate internal MAPL callers of MAPL_BaseMod to source modules; export mapl_GridGetGlobalCellCountPerDim from geom API (#4859)
* Migrate internal MAPL callers of MAPL_BaseMod to source modules; export mapl_GridGetGlobalCellCountPerDim from geom API (#4857) - geom/API.F90: export mapl_GridGetGlobalCellCountPerDim from mapl3g_GridGetGlobal - base/MAPL_LocStreamMod.F90, ESMFL_Mod.F90, MAPL_VerticalMethods.F90, MAPL_VerticalInterpMod.F90, Base.F90: migrate from MAPL_BaseMod to mapl_MaplGrid / MAPL_Constants as appropriate - GeomIO/SharedIO.F90, Grid_PFIO.F90, pFIOServerBounds.F90: same migration - state/StateArithmeticParser.F90, StateMasking.F90: same migration - base/FileIOShared.F90, NCIO.F90: superseded by PR #4858 upstream changes * Retrigger CI after FVdycoreCubed PR #375 merged
1 parent b0c8c8d commit 5a8fb3c

12 files changed

Lines changed: 19 additions & 13 deletions

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030

3131
### Added
3232

33+
- Export `mapl_GridGetGlobalCellCountPerDim` from `mapl3g_Geom_API` (`geom/API.F90`) via `mapl3g_GridGetGlobal` (#4857)
34+
- Migrate internal MAPL callers of `MAPL_BaseMod` in `base/` and `GeomIO/` and `state/` to use source modules directly, as preparation for eventual deletion of `Base_Base.F90` (#4857)
35+
3336
- Added `EASEGeomSpec` and `EASEGeomFactory` to `MAPL.geom` (`geom/EASE/`),
3437
porting the legacy EASE (Equal-Area Scalable Earth) grid from `MAPL.base`.
3538
Supports EASEv1 and EASEv2 cylindrical ('M') grids for all standard resolutions

GeomIO/Grid_PFIO.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module mapl3g_GridPFIO
99
use mapl3g_SharedIO
1010
use ESMF
1111
use PFIO
12-
use MAPL_BaseMod
12+
use MAPL_Constants, only: MAPL_RADIANS_TO_DEGREES
1313
use MAPL_FieldPointerUtilities
1414
use mapl3g_pFIOServerBounds, only: pFIOServerBounds, PFIO_BOUNDS_WRITE, PFIO_BOUNDS_READ
1515

GeomIO/SharedIO.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ module mapl3g_SharedIO
1212
use mapl3g_StringDictionary
1313
use gFTL2_StringSet
1414
use mapl3g_Geom_API
15-
use MAPL_BaseMod
1615
use mapl3g_UngriddedDims
16+
use, intrinsic :: iso_fortran_env, only: REAL64
1717
use mapl3g_UngriddedDim
1818
use mapl3g_CompressionSettings
1919
use esmf

GeomIO/pFIOServerBounds.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module mapl3g_pFIOServerBounds
77
use pfio
88
use gFTL2_StringVector
99
use mapl3g_Geom_API, only: MAPL_GridGet
10-
use MAPL_BaseMod, only: MAPL2_GridGet => MAPL_GridGet
10+
use mapl_MaplGrid, only: MAPL2_GridGet => MAPL_GridGet
1111

1212
implicit none
1313
private

base/Base.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module MAPLBase_Mod
44

55
use ESMFL_Mod ! Stopgap
66
use MAPL_ExceptionHandling
7-
use MAPL_BaseMod
7+
88
use NCIOMod
99
use MAPL_LocStreamMod
1010
use MAPL_ShmemMod

base/ESMFL_Mod.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ module ESMFL_MOD
3131

3232
!USES:
3333
use ESMF
34-
use MAPL_Constants
35-
use MAPL_BaseMod
34+
use MAPL_Constants
35+
use mapl_MaplGrid, only: MAPL_GridGet, MAPL_DistGridGet, MAPL_GetImsJms, MAPL_GridHasDE
3636
use MAPL_CommsMod
3737
use mapl3g_Field_API, only: MAPL_FieldEmptyComplete, MAPL_FieldClone
3838
use MAPL_ExceptionHandling

base/MAPL_LocStreamMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module MAPL_LocStreamMod
2424

2525
use ESMF
2626
use ESMFL_Mod
27-
use MAPL_BaseMod
27+
use mapl_MaplGrid, only: MAPL_GridGet
2828
use MAPL_Constants
2929
use mapl3g_GridGet, only: geom_GridGet => GridGet
3030
use NCIOMod, only: MAPL_ReadTilingNC4

base/MAPL_VerticalInterpMod.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
module linearVerticalInterpolation_mod
1818

1919
use ESMF
20-
use MAPL_BaseMod
2120
use MAPL_Constants, only: MAPL_KAPPA, MAPL_RGAS, MAPL_CP, MAPL_GRAV
21+
use mapl_MaplGrid, only: MAPL_GridGet
2222
use MAPL_ExceptionHandling
2323
use, intrinsic :: iso_fortran_env, only: REAL64
2424
!

base/MAPL_VerticalMethods.F90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
module MAPL_VerticalDataMod
44
use ESMF
5-
use MAPL_BaseMod
6-
use MAPL_Profiler
5+
use MAPL_Constants, only: MAPL_UNDEF, MAPL_GRAV
6+
use mapl_MaplGrid, only: MAPL_GridGet, MAPL_GridHasDE
7+
use MAPL_Profiler
78
use pFIO
89
use MAPL_ExceptionHandling
910
use MAPL_Constants

geom/API.F90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module mapl3g_Geom_API
88
use mapl3g_GeomGet, only: mapl_GeomGet => GeomGet
99
use mapl3g_GridGet, only: mapl_GridGet => GridGet, mapl_GridGetCoordinates => GridGetCoordinates
1010
use mapl3g_GridGetHorzIJIndex, only: mapl_GridGetHorzIJIndex => GridGetHorzIJIndex
11+
use mapl3g_GridGetGlobal, only: mapl_GridGetGlobalCellCountPerDim => GridGetGlobalCellCountPerDim
1112
use mapl3g_GeomGetHorzIJIndex, only: mapl_GeomGetHorzIJIndex => GeomGetHorzIJIndex
1213
use mapl3g_Subgrid, only: mapl_Interval => Interval, mapl_make_subgrids => make_subgrids
1314
use mapl3g_XYGeomSpec, only: XYGeomSpec, make_XYGeomSpec, XY_COORD_STANDARD, XY_COORD_ABI
@@ -23,6 +24,7 @@ module mapl3g_Geom_API
2324
public :: mapl_GridGet
2425
public :: mapl_GridGetCoordinates
2526
public :: mapl_GridGetHorzIJIndex, mapl_GeomGetHorzIJIndex
27+
public :: mapl_GridGetGlobalCellCountPerDim
2628

2729
! Used internally by MAPL
2830
! Users shouldn't need these

0 commit comments

Comments
 (0)