mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fix typo in DAGMC lost particle test (#3634)
This commit is contained in:
parent
8d618716b5
commit
7815d3a680
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue