Allow root_universe to be passed to Geometry constructor

This commit is contained in:
Paul Romano 2016-05-25 10:02:27 -05:00
parent 1f294c614e
commit eb3f888c89
9 changed files with 16 additions and 17 deletions

View file

@ -74,8 +74,7 @@ universe1.add_cells([cell2, cell3])
root.add_cells([cell1, cell4])
# 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()