Skip to content

Fix MOAB partitioning for single a core#184

Merged
xylar merged 2 commits into
MPAS-Dev:mainfrom
xylar:fix-moab-for-single-core
Jul 20, 2026
Merged

Fix MOAB partitioning for single a core#184
xylar merged 2 commits into
MPAS-Dev:mainfrom
xylar:fix-moab-for-single-core

Conversation

@xylar

@xylar xylar commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

mbpart refuses to create a single partition ("Please specify #parts = 1 to be greater than 1"), so building a mapping file with map_tool='moab' and ntasks=1 failed. Skip the mbpart step and pass the unpartitioned .h5m mesh to mbtempest when there is only one task.

The mbconvert step is kept at all task counts. Loading SCRIP files directly into mbtempest is not a viable alternative: mbtempest aborts while computing weights when a mesh with more than 4 vertices per cell (e.g. an MPAS cell mesh) is loaded from SCRIP as the destination mesh. This is independent of the NetCDF format of the SCRIP file.

Add unit tests that check the commands pyremap constructs for moab and esmf at one and two tasks, with check_call mocked so no MOAB or ESMF binaries are needed.

xylar and others added 2 commits July 20, 2026 20:45
mbpart refuses to create a single partition ("Please specify #parts = 1
to be greater than 1"), so building a mapping file with map_tool='moab'
and ntasks=1 failed.  Skip the mbpart step and pass the unpartitioned
.h5m mesh to mbtempest when there is only one task.

The mbconvert step is kept at all task counts.  Loading SCRIP files
directly into mbtempest is not a viable alternative: mbtempest aborts
while computing weights when a mesh with more than 4 vertices per cell
(e.g. an MPAS cell mesh) is loaded from SCRIP as the destination mesh.
This is independent of the NetCDF format of the SCRIP file.

Add unit tests that check the commands pyremap constructs for moab and
esmf at one and two tasks, with check_call mocked so no MOAB or ESMF
binaries are needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@xylar xylar self-assigned this Jul 20, 2026
@xylar xylar added the bug Something isn't working label Jul 20, 2026
@xylar
xylar merged commit a5b3f0b into MPAS-Dev:main Jul 20, 2026
6 checks passed
@xylar
xylar deleted the fix-moab-for-single-core branch July 20, 2026 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant