Skip to content

Commit bee5bae

Browse files
authored
Merge pull request #448 from GEOS-ESM/feature/447-remove-mapl3g-reverts
Replace remaining mapl3g_ uses with use MAPL (closes #447)
2 parents ddf7786 + 5ef0191 commit bee5bae

7 files changed

Lines changed: 29 additions & 25 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
patch-esmf: true
5454
# For some reason, Spack builds have weird install issues. For now, skip install.
5555
run-install: false
56+
load-fms: true
5657

5758
spack_build_gocart:
5859
uses: GEOS-ESM/CI-workflows/.github/workflows/spack_gcc_build.yml@project/geosgcm
@@ -65,4 +66,5 @@ jobs:
6566
patch-esmf: true
6667
# Note: you cannot build the install target with plain GOCART
6768
run-install: false
69+
load-fms: true
6870

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818
by the MAPL umbrella. Affected files: `DU2G_GridCompMod.F90`,
1919
`SS2G_GridCompMod.F90`, `GOCART2G_GridCompMod.F90`,
2020
`Chem_AeroGeneric.F90`, `GA_EnvironmentMod.F90`
21+
- Replace remaining `use mapl3g_UngriddedDim` and `use mapl3g_UserSetServices`
22+
with `use MAPL` now that `UngriddedDim` and `user_setservices` are
23+
re-exported by the MAPL umbrella (closes #447). Affected files:
24+
`DU2G_GridCompMod.F90`, `SS2G_GridCompMod.F90`, `GOCART2G_GridCompMod.F90`,
25+
`Chem_AeroGeneric.F90`
2126
- Remove `MAPL2` from `Chem_Shared2G` and `DU2G_GridComp` CMake dependencies; replace with `MAPL` (#437)
2227
- Migrate `SS2G_GridCompMod.F90` from `use MAPL_MaplGrid` to `use MAPL` for `mapl_GridGetGlobalCellCountPerDim`; `dims` made allocatable (MAPL#4875)
2328
- Migrate `DU2G_GridCompMod.F90` from `use MAPL_BaseMod`/`use mapl_MaplGrid` to `use MAPL` for `mapl_GridGetGlobalCellCountPerDim` (MAPL#4857)

ESMF/GOCART2G_GridComp/DU2G_GridComp/DU2G_GridCompMod.F90

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ module DU2G_GridCompMod
99
!USES:
1010
use ESMF
1111
use pflogger, only: logger_t => logger
12-
use mapl_ErrorHandling, only: MAPL_Verify, MAPL_Assert, MAPL_Return
13-
! use MAPL
14-
use MAPL, only: MAPL_get_num_threads => get_num_threads, MAPL_get_current_thread => get_current_thread, &
12+
use MAPL, only: MAPL_Verify, MAPL_Assert, MAPL_Return, &
13+
MAPL_get_num_threads => get_num_threads, MAPL_get_current_thread => get_current_thread, &
1514
mapl_GridGetGlobalCellCountPerDim, MAPL_GridCompGet, MAPL_GridCompGetResource, &
1615
MAPL_GridCompGetInternalState, MAPL_GridCompSetEntryPoint, MAPL_GridCompAddSpec, &
1716
MAPL_STATEITEM_STATE, MAPL_STATEITEM_FIELDBUNDLE, MAPL_ClockGet, &
1817
MAPL_UserCompSetInternalState, MAPL_UserCompGetInternalState, &
1918
VERTICAL_STAGGER_NONE, VERTICAL_STAGGER_CENTER, VERTICAL_STAGGER_EDGE, &
20-
MAPL_RESTART_SKIP, MAPL_StateGetPointer, MAPL_GeomGetHorzIJIndex
21-
use mapl3g_UngriddedDim, only: UngriddedDim
19+
MAPL_RESTART_SKIP, MAPL_StateGetPointer, MAPL_GeomGetHorzIJIndex, UngriddedDim
2220
use MAPL_Constants, only: MAPL_UNDEFINED_REAL, MAPL_GRAV, MAPL_KARMAN, MAPL_RADIANS_TO_DEGREES
2321
use MAPL_PackedTimeMod, only: MAPL_PackedDateCreate => PackedDateCreate, &
2422
MAPL_PackedTimeCreate => PackedTimeCreate

ESMF/GOCART2G_GridComp/GOCART2G_GridCompMod.F90

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ module GOCART2G_GridCompMod
77

88
!USES:
99
use ESMF
10-
use mapl_ErrorHandling, only: MAPL_Verify, MAPL_Return, MAPL_Assert
11-
use MAPL_Constants, only: MAPL_GRAV, MAPL_PI
12-
13-
use MAPL, only: MAPL_GridCompSetEntryPoint, MAPL_GridCompGet, MAPL_GridCompAddSpec, &
10+
use MAPL, only: MAPL_Verify, MAPL_Return, MAPL_Assert, &
11+
MAPL_GridCompSetEntryPoint, MAPL_GridCompGet, MAPL_GridCompAddSpec, &
1412
MAPL_GridCompAddChild, MAPL_GridCompGetChildName, MAPL_GridCompRunChild, &
1513
MAPL_GridCompAddConnectivity, MAPL_GridCompGetResource, MAPL_GridCompReexport, &
1614
MAPL_STATEITEM_STATE, MAPL_STATEITEM_FIELDBUNDLE, &
1715
MAPL_UserCompGetInternalState, MAPL_UserCompSetInternalState, &
1816
MAPL_RESTART_SKIP, VERTICAL_STAGGER_NONE, VERTICAL_STAGGER_CENTER, VERTICAL_STAGGER_EDGE, &
19-
MAPL_FieldBundleAdd, MAPL_FieldBundleGet, MAPL_StateGetPointer, MAPL_GridGet
20-
use mapl3g_UngriddedDim, only: UngriddedDim
17+
MAPL_FieldBundleAdd, MAPL_FieldBundleGet, MAPL_StateGetPointer, MAPL_GridGet, UngriddedDim
18+
use MAPL_Constants, only: MAPL_GRAV, MAPL_PI
2119

2220
use Chem_AeroGeneric
2321

@@ -1182,7 +1180,7 @@ subroutine create_instances_(self, gc, rc)
11821180
end subroutine create_instances_
11831181

11841182
subroutine add_children__(gc, species, setservices, rc)
1185-
use mapl3g_UserSetServices, only: user_setservices
1183+
use MAPL, only: user_setservices
11861184
type (ESMF_GridComp), intent(inout) :: gc
11871185
type(Constituent), intent(inout) :: species
11881186
external :: setservices

ESMF/GOCART2G_GridComp/SS2G_GridComp/SS2G_GridCompMod.F90

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,15 @@ module SS2G_GridCompMod
1010
!USES:
1111
use ESMF
1212
use pflogger, only: logger_t => logger
13-
use mapl_ErrorHandling, only: MAPL_Verify, MAPL_Assert, MAPL_Return
14-
use MAPL_Constants, only: MAPL_RADIANS_TO_DEGREES, MAPL_PI, MAPL_GRAV, MAPL_KARMAN
15-
use MAPL, only: MAPL_GridGet, MAPL_GridGetCoordinates, mapl_GridGetGlobalCellCountPerDim, &
13+
use MAPL, only: MAPL_Verify, MAPL_Assert, MAPL_Return, &
14+
MAPL_GridGet, MAPL_GridGetCoordinates, mapl_GridGetGlobalCellCountPerDim, &
1615
MAPL_GridCompSetEntryPoint, MAPL_GridCompAddSpec, MAPL_GridCompGet, &
1716
MAPL_GridCompGetResource, MAPL_GridCompGetInternalState, &
1817
MAPL_STATEITEM_STATE, MAPL_STATEITEM_FIELDBUNDLE, MAPL_ClockGet, &
1918
MAPL_UserCompSetInternalState, MAPL_UserCompGetInternalState, &
2019
VERTICAL_STAGGER_NONE, VERTICAL_STAGGER_CENTER, VERTICAL_STAGGER_EDGE, &
21-
MAPL_RESTART_SKIP, MAPL_StateGetPointer
22-
use mapl3g_UngriddedDim, only: UngriddedDim
20+
MAPL_RESTART_SKIP, MAPL_StateGetPointer, UngriddedDim
21+
use MAPL_Constants, only: MAPL_RADIANS_TO_DEGREES, MAPL_PI, MAPL_GRAV, MAPL_KARMAN
2322
use GOCART2G_MieMod
2423
use Chem_AeroGeneric
2524
use iso_c_binding, only: c_loc, c_f_pointer, c_ptr

ESMF/Shared/Chem_AeroGeneric.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ module Chem_AeroGeneric
1111

1212
!USES:
1313
use ESMF
14-
use mapl_ErrorHandling, only: MAPL_Verify, MAPL_Assert, MAPL_Return
15-
use MAPL, only: MAPL_StateGetPointer, MAPL_FieldGet, MAPL_FieldCreate, MAPL_FieldBundleAdd, &
14+
use MAPL, only: MAPL_Verify, MAPL_Assert, MAPL_Return, &
15+
MAPL_StateGetPointer, MAPL_FieldGet, MAPL_FieldCreate, MAPL_FieldBundleAdd, &
1616
VerticalStaggerLoc, VERTICAL_STAGGER_EDGE, VERTICAL_STAGGER_CENTER, UngriddedDims
1717
! USE Chem_MieMod2G
1818

components.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,37 @@ GOCART:
55
env:
66
local: ./env@
77
remote: ../ESMA_env.git
8-
tag: v5.16.0
8+
tag: v5.21.0
99
develop: main
1010

1111
cmake:
1212
local: ./cmake@
1313
remote: ../ESMA_cmake.git
14-
tag: v3.68.0
14+
tag: v4.36.0
1515
develop: develop
1616

1717
ecbuild:
1818
local: ./cmake@/ecbuild@
1919
remote: ../ecbuild.git
20-
tag: geos/v1.4.0
20+
tag: geos/v3.13.1
2121

2222
HEMCO:
2323
local: ./ESMF/HEMCO_GridComp@
2424
remote: ../HEMCO.git
25-
tag: geos/v2.3.0
25+
# NOTE: The MAPL3 branch in HEMCO is *NOT* based off of geos/develop as that is far ahead of current where GEOSgcm
26+
# is. This is based on release/geos/2.3.0 which was off of geos/v2.3.0
27+
branch: geos/release/MAPL-v3
2628
develop: geos/develop
2729

2830
GMAO_Shared:
2931
local: ./ESMF/Shared/GMAO_Shared@
3032
remote: ../GMAO_Shared.git
31-
tag: v2.1.4
33+
branch: release/MAPL-v3
3234
sparse: ./config/GMAO_Shared.sparse
3335
develop: main
3436

3537
MAPL:
3638
local: ./ESMF/Shared/MAPL@
3739
remote: ../MAPL.git
38-
tag: release/MAPL-v3
40+
branch: develop
3941
develop: develop

0 commit comments

Comments
 (0)