Skip to content

Ensure libMesh::ReplicatedMesh is used for LibMesh tallies - #3208

Merged
paulromano merged 1 commit into
openmc-dev:developfrom
nuclearkevin:check_replicated_mesh
Dec 3, 2024
Merged

paulromano merged 1 commit into
openmc-dev:developfrom
nuclearkevin:check_replicated_mesh

Conversation

@nuclearkevin

Copy link
Copy Markdown
Member

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)

@paulromano paulromano left a comment

Copy link
Copy Markdown
Contributor

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
@nuclearkevin
nuclearkevin deleted the check_replicated_mesh branch August 23, 2025 15:34
apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
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