From 97d99f16258d04c7af071d9d500e19bc6853411a Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Fri, 10 Mar 2017 07:13:38 -0600 Subject: [PATCH] Fix bug in autodetermining root universe (didn't account for lattice outer) --- openmc/summary.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openmc/summary.py b/openmc/summary.py index c30f004cbb..82275007c0 100644 --- a/openmc/summary.py +++ b/openmc/summary.py @@ -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