Skip to content

Fix non-MPI build: guard domain_mgr_ getDomain() call#18

Open
gavdoubleu wants to merge 7 commits into
IDAS-Durham:mainfrom
gavdoubleu:non_mpi_bug
Open

Fix non-MPI build: guard domain_mgr_ getDomain() call#18
gavdoubleu wants to merge 7 commits into
IDAS-Durham:mainfrom
gavdoubleu:non_mpi_bug

Conversation

@gavdoubleu

Copy link
Copy Markdown
Contributor

Summary

  • Serial (non-MPI) build fails: unguarded domain_mgr_->getDomain() call in runSlotTransmission needs full DomainManager type, but it's only forward-declared without USE_MPI. Wrapped in #ifdef USE_MPI, matching every other domain_mgr_ call site in the file.

Suggestion

CI currently only builds with MPI. Add a serial (-DUSE_MPI=OFF) compile job to the PR gate to catch this class of bug.

Test plan

  • Built serial (-DUSE_MPI=OFF -DUSE_METIS=OFF) on NCC
  • ctest passes

gavdoubleu and others added 7 commits May 28, 2026 15:00
Reproducible conda environment for building and running JUNE2. Includes cxx-compiler (GCC on Linux), cmake, hdf5, yaml-cpp, openmpi, Python test deps (h5py, numpy), and optional deps metis and gperftools.
Non-MPI builds only forward-declare DomainManager, so the unguarded
domain_mgr_->getDomain() call fails to compile. Wrap in #ifdef USE_MPI,
matching every other domain_mgr_ call site in this file.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@gavdoubleu
gavdoubleu requested a review from mtcorread as a code owner July 17, 2026 12:09
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.

1 participant