mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Fix bug in autodetermining root universe (didn't account for lattice outer)
This commit is contained in:
parent
f805fddb6b
commit
97d99f1625
1 changed files with 3 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ class Summary(object):
|
|||
|
||||
@property
|
||||
def date_and_time(self):
|
||||
return self._f.attrs['date_and_time']
|
||||
return self._f.attrs['date_and_time'].decode()
|
||||
|
||||
@property
|
||||
def geometry(self):
|
||||
|
|
@ -185,6 +185,8 @@ class Summary(object):
|
|||
for idx in fill._natural_indices:
|
||||
univ = fill.get_universe(idx)
|
||||
fill_univ_ids.add(univ.id)
|
||||
if fill.outer is not None:
|
||||
fill_univ_ids.add(fill.outer.id)
|
||||
|
||||
# Set the fill for the Cell
|
||||
cells[cell_id].fill = fill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue