Skip to content

Migrate use MAPL_ConstantsMod to use MAPL_Constants (MAPL3 compatibility) #191

@tclune

Description

@tclune

Background

MAPL3 has reorganized `shared/Constants` as part of GEOS-ESM/MAPL#4568 (issue #4567).

As part of that cleanup, the legacy alias module `MAPL_ConstantsMod` has been removed. The module naming convention in MAPL3 drops the `Mod` suffix from all module names.

Target branch

Changes should be made on the `release/MAPL-v3` branch of this repo.

Required change

All files that currently have:

```fortran
use MAPL_ConstantsMod
```

must be updated to:

```fortran
use MAPL_Constants
```

Note also that MAPL3 introduces descriptive aliases for the old cryptic constant names (e.g. `MAPL_GRAVITY` for `MAPL_GRAV`, `MAPL_DRY_AIR_GAS_CONSTANT` for `MAPL_RDRY`). The old names are retained as `! DEPRECATED` parameter aliases and will continue to work, but migrating to the descriptive names is encouraged.

Affected files (~15 found via code search)

  • `post/TEM.F90`
  • `post/stats.F90`
  • `post/rs_vinterp.F90`
  • `post/rs_vinterp_scm.F90`
  • `post/ec_prs2eta.F`
  • `post/ec_prs2fv.F`
  • `post/ec_eta2fv.F`
  • `post/era5_prs2eta.F`
  • `post/eta2prs.F`
  • `post/convert_eta.F`
  • `post/gg2eta.F`
  • `post/gg2fv.F`
  • `post/windfix.F`
  • `post/ncep_prs2fv.F`
  • `post/rsg3_vinterp.F`
  • `post/rs_hinterp.F`
  • `plots/zonal.f`

Timing

This change is required for MAPL3 compatibility. The MAPL PR (#4568) is currently labeled "contingent" pending this migration in downstream repos. A companion issue has been filed against GEOS-ESM/GEOSgcm_GridComp#1233.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions