Skip to content

MPAS dycore advancements#3156

Merged
gspetro-NOAA merged 104 commits intoufs-community:developfrom
dustinswales:feature/mpas_lbc_plus_cleanup
Apr 29, 2026
Merged

MPAS dycore advancements#3156
gspetro-NOAA merged 104 commits intoufs-community:developfrom
dustinswales:feature/mpas_lbc_plus_cleanup

Conversation

@dustinswales
Copy link
Copy Markdown
Collaborator

@dustinswales dustinswales commented Mar 20, 2026

Commit Queue Requirements:

  • This PR addresses a relevant WM issue (if not, create an issue).
  • All subcomponent pull requests (if any) have been reviewed by their code managers.
  • Run the full Intel+GNU RT suite (compared to current baselines), preferably on Ursa (Derecho or Hercules are acceptable alternatives). Exceptions: documentation-only PRs, CI-only PRs, etc.
    • Commit log file w/full results from RT suite run (if applicable).
    • Verify that test_changes.list indicates which tests, if any, are changed by this PR. Commit test_changes.list, even if it is empty.
  • Fill out all sections of this template.

Description:

Updates to the MPAS dynamical core interface to the UFSATM.

New advancements within th UFSATM:

  • Constituent handling and scalar advection. New module, ufs_mpas_constituents, which contains interface code between MPAS constituents and the UFS.
  • MPAS native output stream. Contained within the ufs_mpas_io module. This module also includes procedures for reading in the various MPAS input streams (e.g., invariant, input, sfc_input)
  • Support for lateral boundary condition (LBC) stream. New module with code related to regional MPAS configurations, ufs_mpas_boundaries. The LBCs are updated during forecast integration, _run phase in ufs_mpas_subdriver.F90.
  • Progress on CCPP physics coupling. New MPAS input stream (sfc_input) for gridded fields needed by the physics. Additional P2D coupling procedures to handle the state evolution between physics group and dycore calls. Added diagnostics to output stream.

Within the UWM, the changes are entirely to the MPAS testing configurations within the UWM.

Commit Message:

* UFSWM - Updates to the MPAS dynamical core interface to the UFSATM.
  * UFSATM - Updates to the MPAS dynamical core interface to the UFSATM.
    * ccpp-physics - Small bug fix for photochemistry.

Priority:

  • Critical Bugfix: Reason
  • High: Reason
  • Normal

Git Tracking

UFSWM:

Sub component Pull Requests:

UFSWM Blocking Dependencies:

  • Blocked by #
  • None

Documentation:

  • Documentation update required.
    • Relevant updates are included with this PR.
    • A WM issue has been opened to track the need for a documentation update; a person responsible for submitting the update has been assigned to the issue (link issue).
  • Documentation update NOT required.
    • Explanation:

Changes

Regression Test Changes (Please commit test_changes.list):

  • PR Adds New Tests/Baselines.
  • PR Updates/Changes Baselines.
  • No Baseline Changes.

Input data Changes:

  • None.
  • PR adds input data.
  • PR changes existing input data.

Library Changes/Upgrades:

  • Required
    • Library names w/versions:
    • Git Stack Issue (JCSDA/spack-stack#)
  • No Updates

Testing Log:

  • RDHPCS
    • Orion
    • Hercules
    • GaeaC6
    • Derecho
    • Ursa
  • WCOSS2
    • Dogwood/Cactus
    • Acorn
  • CI
  • opnReqTest (complete task if unnecessary)

Natalie Perlin and others added 30 commits August 12, 2025 13:53
@gspetro-NOAA
Copy link
Copy Markdown
Collaborator

@dustinswales Baseline creation ran successfully on Hercules, but on Derecho, I am seeing errors that are causing the baseline creation to fail. Errors are similar for both tests, so here's what I see for control_gfs_mpas_gnu:

The specified filesystem prefix is not supported in this library:
    history.2023-03-10_15:00:00.nc
The specified filesystem prefix is not supported in this library:
    history.2023-03-10_15:00:00.nc
The specified filesystem prefix is not supported in this library:
    history.2023-03-10_15:00:00.nc
The specified filesystem prefix is not supported in this library:
    history.2023-03-10_15:00:00.nc
Abort with message Unknown error in file operation in file /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/cache/build_stage/spack-stage-parallelio-2.6.2-m4egtstkuepe7z7mkthzab2mdp3aataj/spack-src/src/clib/pioc_support.c at line 2176
Abort with message Unknown error in file operation in file /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/cache/build_stage/spack-stage-parallelio-2.6.2-m4egtstkuepe7z7mkthzab2mdp3aataj/spack-src/src/clib/pioc_support.c at line 2176
Obtained 10 stack frames.
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(print_trace+0x24) [0x15168620fc54]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(piodie+0x3f) [0x15168620fd0f]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(check_netcdf2+0x149) [0x151686210049]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(PIOc_createfile_int+0x4b1) [0x151686214491]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(PIOc_createfile+0x3f) [0x15168620f11f]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpiof.so(__piolib_mod_MOD_createfile+0xaa) [0x151685c123aa]
./fv3.exe() [0x12990d8]
./fv3.exe() [0x12824f9]
./fv3.exe() [0x127ae80]
./fv3.exe() [0x12578e9]
MPICH ERROR [Rank 1] [job id 0ae03ea6-9e15-4cee-b2be-623f984cf68b] [Mon Apr 27 12:45:21 2026] [dec1239] - Abort(-1) (rank 1 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 1

aborting job:
application called MPI_Abort(MPI_COMM_WORLD, -1) - process 1
Abort with message Unknown error in file operation in file /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/cache/build_stage/spack-stage-parallelio-2.6.2-m4egtstkuepe7z7mkthzab2mdp3aataj/spack-src/src/clib/pioc_support.c at line 2176
...

My run_dir is: /glade/derecho/scratch/gpetro/FV3_RT/rt_110427, and my test_dir is: /glade/derecho/scratch/gpetro/RTs/ufs-wm/3156a/tests.

 on-behalf-of @ufs-community <ecc.platform@noaa.gov>
@dustinswales
Copy link
Copy Markdown
Collaborator Author

@dustinswales Baseline creation ran successfully on Hercules, but on Derecho, I am seeing errors that are causing the baseline creation to fail. Errors are similar for both tests, so here's what I see for control_gfs_mpas_gnu:

The specified filesystem prefix is not supported in this library:
    history.2023-03-10_15:00:00.nc
The specified filesystem prefix is not supported in this library:
    history.2023-03-10_15:00:00.nc
The specified filesystem prefix is not supported in this library:
    history.2023-03-10_15:00:00.nc
The specified filesystem prefix is not supported in this library:
    history.2023-03-10_15:00:00.nc
Abort with message Unknown error in file operation in file /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/cache/build_stage/spack-stage-parallelio-2.6.2-m4egtstkuepe7z7mkthzab2mdp3aataj/spack-src/src/clib/pioc_support.c at line 2176
Abort with message Unknown error in file operation in file /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/cache/build_stage/spack-stage-parallelio-2.6.2-m4egtstkuepe7z7mkthzab2mdp3aataj/spack-src/src/clib/pioc_support.c at line 2176
Obtained 10 stack frames.
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(print_trace+0x24) [0x15168620fc54]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(piodie+0x3f) [0x15168620fd0f]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(check_netcdf2+0x149) [0x151686210049]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(PIOc_createfile_int+0x4b1) [0x151686214491]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpioc.so(PIOc_createfile+0x3f) [0x15168620f11f]
/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-gcc-12.4/install/gcc/12.4.0/parallelio-2.6.2-m4egtst/lib/libpiof.so(__piolib_mod_MOD_createfile+0xaa) [0x151685c123aa]
./fv3.exe() [0x12990d8]
./fv3.exe() [0x12824f9]
./fv3.exe() [0x127ae80]
./fv3.exe() [0x12578e9]
MPICH ERROR [Rank 1] [job id 0ae03ea6-9e15-4cee-b2be-623f984cf68b] [Mon Apr 27 12:45:21 2026] [dec1239] - Abort(-1) (rank 1 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, -1) - process 1

aborting job:
application called MPI_Abort(MPI_COMM_WORLD, -1) - process 1
Abort with message Unknown error in file operation in file /glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/cache/build_stage/spack-stage-parallelio-2.6.2-m4egtstkuepe7z7mkthzab2mdp3aataj/spack-src/src/clib/pioc_support.c at line 2176
...

My run_dir is: /glade/derecho/scratch/gpetro/FV3_RT/rt_110427, and my test_dir is: /glade/derecho/scratch/gpetro/RTs/ufs-wm/3156a/tests.

Hmmm. That's odd.
@scrasmussen Do you have any ideas/insight on this?

@gspetro-NOAA
Copy link
Copy Markdown
Collaborator

@dustinswales Any update on the Derecho troubleshooting? (Not sure if anything is happening offline.) If you don't think this problem can be solved today, we can remove derecho from the machine list, file an issue, and you can put in a fix with the next PR (or issue a bugfix PR).

@dustinswales
Copy link
Copy Markdown
Collaborator Author

dustinswales commented Apr 28, 2026

@dustinswales Any update on the Derecho troubleshooting? (Not sure if anything is happening offline.) If you don't think this problem can be solved today, we can remove derecho from the machine list, file an issue, and you can put in a fix with the next PR (or issue a bugfix PR).

@gspetro-NOAA I just figured out the issue on Derecho. The default PIO output type is PNETCDF, which doesn't work on Derecho. If I change the default PIO output type to NETCDF it runs on Derecho.

I agree with your suggestion. (Remove Derecho, open issue, and I'll add to #3201)

For references, here are the changes causing trouble in the UFSATM NUOPC Cap:

-       cvalue = 'NETCDF'
-       pio_iotype = PIO_IOTYPE_NETCDF
+       cvalue = 'PNETCDF'
+       pio_iotype = PIO_IOTYPE_PNETCDF

@gspetro-NOAA gspetro-NOAA removed the In Testing The PR that is currently in testing stages label Apr 29, 2026
@gspetro-NOAA
Copy link
Copy Markdown
Collaborator

Testing has concluded successfully; leaving a note in sub-PRs.

@gspetro-NOAA
Copy link
Copy Markdown
Collaborator

@dustinswales Please revert .gitmodules and update the UFSATM hash to 967cba8.

Comment thread .gitmodules Outdated
@gspetro-NOAA gspetro-NOAA merged commit 31863b9 into ufs-community:develop Apr 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Adds Input Data New input data needs to be added (e.g., for new test). No existing input data is changed. Baseline Updates Current baselines will be updated. CCPP There are changes to a CCPP repository. New Baselines New baselines will be added to project. Ready for Commit Queue The PR is ready for the Commit Queue. All checkboxes in PR template have been checked. UFSATM There are changes to the UFSATM repository.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add native MPAS output MPAS Lateral Boundary Condition Stream

10 participants