Skip to content

Conversation

@nuclearkevin
Copy link
Contributor

Description

This PR implements a quick check in LibMesh::LibMesh(libMesh::MeshBase& input_mesh ...) to ensure that the input_mesh points to a libMesh::ReplicatedMesh instance, alongside explicitly instantiating a libMesh::ReplicatedMesh in LibMesh::set_mesh_pointer_from_filename(...) (suggested by @pshriwise while discussing #3206). This enforces the currently assumed behaviour that the entire mesh exists on all MPI ranks.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @nuclearkevin!

@paulromano paulromano merged commit a940216 into openmc-dev:develop Dec 3, 2024
16 checks passed
@nuclearkevin nuclearkevin deleted the check_replicated_mesh branch August 23, 2025 15:34
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.

2 participants