mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Updates to the dagmc test and settings test from the Python API.
This commit is contained in:
parent
41c462a0b1
commit
a09c468faf
2 changed files with 3 additions and 3 deletions
|
|
@ -29,7 +29,9 @@ def dagmc_model(request):
|
|||
source = openmc.Source(space=source_box)
|
||||
model.settings.source = source
|
||||
|
||||
model.settings.dagmc = True
|
||||
# geometry
|
||||
dagmc_universe = openmc.DAGMCUniverse('dagmc.h5m')
|
||||
model.geometry = openmc.Geometry(dagmc_universe)
|
||||
|
||||
# tally
|
||||
tally = openmc.Tally()
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ def test_export_to_xml(run_in_tmpdir):
|
|||
s.log_grid_bins = 2000
|
||||
s.photon_transport = False
|
||||
s.electron_treatment = 'led'
|
||||
s.dagmc = False
|
||||
|
||||
# Make sure exporting XML works
|
||||
s.export_to_xml()
|
||||
|
|
@ -111,4 +110,3 @@ def test_export_to_xml(run_in_tmpdir):
|
|||
assert s.log_grid_bins == 2000
|
||||
assert not s.photon_transport
|
||||
assert s.electron_treatment == 'led'
|
||||
assert not s.dagmc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue