mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fix test_distribmat to work with new source capabilities
This commit is contained in:
parent
d833f90720
commit
84cf96a4be
2 changed files with 4 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
83a9f1412b1ddfdd8b9fa8c7e8b44be8137dc6aa785d44c3eea9f0928242475aea4ba73ba4eef01afdf63bd1bff18116e40b798eeafab50c856186de4c68d5a6
|
||||
cbf6a6cdb0b7814d14a05e6b80780fd66978610825d64547e0a2dda2bdee50f01cfd53e9305febec50a06eb63a00b07e85a97b09b88f748225810c0034508fd0
|
||||
|
|
@ -5,6 +5,8 @@ import sys
|
|||
sys.path.insert(0, os.pardir)
|
||||
from testing_harness import TestHarness, PyAPITestHarness
|
||||
import openmc
|
||||
from openmc.stats import SpatialBox
|
||||
from openmc.source import Source
|
||||
|
||||
|
||||
class DistribmatTestHarness(PyAPITestHarness):
|
||||
|
|
@ -85,7 +87,7 @@ class DistribmatTestHarness(PyAPITestHarness):
|
|||
sets_file.batches = 5
|
||||
sets_file.inactive = 0
|
||||
sets_file.particles = 1000
|
||||
sets_file.set_source_space('box', [-1, -1, -1, 1, 1, 1])
|
||||
sets_file.source = Source(space=SpatialBox([-1, -1, -1], [1, 1, 1]))
|
||||
sets_file.output = {'summary': True}
|
||||
sets_file.export_to_xml()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue