Give seed to surface source testing

This commit is contained in:
YoungHui Park 2020-11-06 16:08:16 -06:00
parent 12621cb993
commit 8b08da7405
4 changed files with 3 additions and 0 deletions

View file

@ -20,6 +20,7 @@
<surf_src_read>
<path>surface_source_true.h5</path>
</surf_src_read>
<seed>1</seed>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>

View file

@ -26,6 +26,7 @@
<surf_ids>1</surf_ids>
<max_surf_banks>1000</max_surf_banks>
</surf_src_write>
<seed>1</seed>
</settings>
<?xml version='1.0' encoding='utf-8'?>
<tallies>

View file

@ -39,6 +39,7 @@ def model(request):
openmc_model.settings.run_mode = 'fixed source'
openmc_model.settings.particles = 1000
openmc_model.settings.batches = 10
openmc_model.settings.seed = 1
if surf_src_op == 'write':
point = openmc.stats.Point((0, 0, 0))