Skip to content

Bugfix: fewer obs than mpi processes#77

Merged
Toby Searle (twsearle) merged 3 commits into
developfrom
bugfix/fewer-obs-than-mpi-processes
Jul 29, 2025
Merged

Bugfix: fewer obs than mpi processes#77
Toby Searle (twsearle) merged 3 commits into
developfrom
bugfix/fewer-obs-than-mpi-processes

Conversation

@twsearle

@twsearle Toby Searle (twsearle) commented Jul 21, 2025

Copy link
Copy Markdown
Collaborator

Description

Ensure that MPI communication happens where all processes will execute it. This prevents deadlock when one or more processes have no observations and so never attempted MPISync:

std::tuple<util::DateTime, size_t> NemoFeedback::mpiSync(size_t nLevelsLocal)

Issue(s) addressed

Resolves #76

Impact

Eliminate operational failures when very small number of obs pass QC.

Testing

Checklist

  • I have updated the unit tests to cover the change
  • New functions are documented briefly via Doxygen comments in the code
  • I have linted my code using cpplint
  • I have run the unit tests
  • I have run mo-bundle to check integration with the rest of JEDI and run the unit tests under all environments

@s-good Simon Good (s-good) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This looks great. My only comment is unrelated to the changes, and is just about an apparently redundant line of code that looks like it could be deleted.

Comment thread src/nemo-feedback/NemoFeedback.cc Outdated
@twsearle Toby Searle (twsearle) marked this pull request as ready for review July 28, 2025 08:18
@twsearle Toby Searle (twsearle) merged commit 3e74177 into develop Jul 29, 2025
2 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.

MPI deadlock when there is at least one ob, but fewer obs than MPI processes

2 participants