Fix typo in DAGMC lost particle test (#3634)

This commit is contained in:
Patrick Shriwise 2025-11-13 23:27:17 -06:00 committed by GitHub
parent 8d618716b5
commit 7815d3a680
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,12 +70,12 @@ def test_lost_particles(run_in_tmpdir, broken_dagmc_model):
openmc.run()
# run this again, but with the dagmc universe as the root unvierse
# to ensure that lost particles are still caught in this case
for univ in broken_dagmc_model.geometry.get_all_universes().values():
if isinstance(univ, openmc.DAGMCUniverse):
broken_dagmc_model.geometry.root_unvierse = univ
broken_dagmc_model.geometry.root_universe = univ
break
broken_dagmc_model.export_to_xml()
with pytest.raises(RuntimeError, match='Maximum number of lost particles has been reached.'):
openmc.run()