mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Allow root_universe to be passed to Geometry constructor
This commit is contained in:
parent
1f294c614e
commit
eb3f888c89
9 changed files with 16 additions and 17 deletions
|
|
@ -97,8 +97,7 @@ root = openmc.Universe(universe_id=0, name='root universe')
|
|||
root.add_cells([inner_box, middle_box, outer_box])
|
||||
|
||||
# Instantiate a Geometry, register the root Universe, and export to XML
|
||||
geometry = openmc.Geometry()
|
||||
geometry.root_universe = root
|
||||
geometry = openmc.Geometry(root)
|
||||
geometry.export_to_xml()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue