Skip to content

Add MPAS-O and MPAS-SI from EarthWorksOrg/EarthWorks #4807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 18, 2025

Conversation

gdicker1
Copy link
Contributor

This Pull Request edits some config_*.xml files and the Makefile so
that MPAS Ocean and MPAS SeaIce can be used as components of a
model in CESM.

These components have been forked from E3SM development for use
in the EarthWorks project (EarthWorksOrg/Earthworks on GitHub).
Adding these components with CESM is part of a long-held
EarthWorks goal to share our developments to run atmosphere, ocean,
seaice, and land models on shared MPAS grids while utilizing GPUs.

Test suite: aux_cmeps
Test baseline: cesm3_0_beta06
Test namelist changes: only model_version reported diff. while testing
Test status: bit for bit

Fixes #4806

User interface changes?: N

Update gh-pages html (Y/N)?: unsure, likely N

Don Dazlich and others added 8 commits August 27, 2022 16:44
Mpas-seaice does not run with optimization. These changes prevent compiler optimization using the gnu compilers for mpas-seaice.
The seaice file that fails with gnu optimization is identified. This file is modified to restrict non-optimization to just this file.
Changes to prevent optimization flags from being applied to
ice_shortwave.F90 from mpas-seaice (PR#2) had incorrect whitespace
before the build rule. This change corrects the spacing.
These modifications permit the mpas-ocean to access
the gpu compiler flags necessary for a gpu build.
Catch up to development, especially to cesm3_0_beta06 version.
@gdicker1
Copy link
Contributor Author

Some help reviewing from @jedwards4b would be appreciated! (Can't assign reviewers.)

@gdicker1
Copy link
Contributor Author

Copy link
Contributor

@jedwards4b jedwards4b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to config_files.xml are fine, but I would prefer that the changes in Makefile be removed to https://github.com/ESMCI/ccs_config_cesm/blob/main/machines/Depends.nvhpc

@gdicker1
Copy link
Contributor Author

The changes to config_files.xml are fine, but I would prefer that the changes in Makefile be removed to https://github.com/ESMCI/ccs_config_cesm/blob/main/machines/Depends.nvhpc

Gotcha, I'll test out moving that over.

These rules for MPAS-Ocean and MPAS-SeaIce are better handled in the
Depends.* files for each compiler than in cime:CIME/Tools/Makefile.
@gdicker1
Copy link
Contributor Author

@jedwards4b do these recent changes here and in ccs_config_cesm address your request?

Copy link
Contributor

@jedwards4b jedwards4b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you!

@jedwards4b jedwards4b merged commit 82802f4 into ESMCI:master Jun 18, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Add MPAS-O and MPAS-SI from EarthWorksOrg/EarthWorks
3 participants