mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Modified the test_settings unit test for new max_lost_particles and rel_max_lost_particles to check they can be assigned/read by the python interface
This commit is contained in:
parent
9f64dd1a88
commit
6a40a535e4
1 changed files with 4 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ def test_export_to_xml(run_in_tmpdir):
|
|||
s.generations_per_batch = 10
|
||||
s.inactive = 100
|
||||
s.particles = 1000000
|
||||
s.max_lost_particles = 5
|
||||
s.rel_max_lost_particles = 1e-4
|
||||
s.keff_trigger = {'type': 'std_dev', 'threshold': 0.001}
|
||||
s.energy_mode = 'continuous-energy'
|
||||
s.max_order = 5
|
||||
|
|
@ -62,6 +64,8 @@ def test_export_to_xml(run_in_tmpdir):
|
|||
assert s.generations_per_batch == 10
|
||||
assert s.inactive == 100
|
||||
assert s.particles == 1000000
|
||||
assert s.max_lost_particles == 5
|
||||
assert s.rel_max_lost_particles == 1e-4
|
||||
assert s.keff_trigger == {'type': 'std_dev', 'threshold': 0.001}
|
||||
assert s.energy_mode == 'continuous-energy'
|
||||
assert s.max_order == 5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue