Skip to content

Fix typo in DAGMC lost particle test - #3634

Merged
paulromano merged 2 commits into
openmc-dev:developfrom
pshriwise:fix-dagmc-lost-particle-test
Nov 14, 2025
Merged

paulromano merged 2 commits into
openmc-dev:developfrom
pshriwise:fix-dagmc-lost-particle-test

Conversation

@pshriwise

@pshriwise pshriwise commented Nov 13, 2025 •

Copy link
Copy Markdown
Contributor

Description

Fixes a typo in the DAGMC lost particle test caught by @paulromano.

This was causing the first case (in which lost particles should be reported when the DAGMC universe is used to fill a CSG cell) to be executed twice.

This fix ensures that the case where the DAGMC universe is used as the root universe is also checked.

A comment was also expanded to better explain the intent of the test.

Checklist

@pshriwise pshriwise changed the title Fix typo when updating the geometry's root universe for the broken DA… Fix typo in DAGMC lost particle test Nov 13, 2025


def test_lost_particles(run_in_tmpdir, broken_dagmc_model):
def test_lost_particles(broken_dagmc_model):

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.

Why was run_in_tmpdir removed here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Wanted the model.xml when I was testing locally and forgot to re-add it. My bad!

@paulromano
paulromano enabled auto-merge (squash) November 14, 2025 03:37
@paulromano
paulromano merged commit 7815d3a into openmc-dev:develop Nov 14, 2025
14 checks passed
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