mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Make sure statepoint context manager closes linked summary
This commit is contained in:
parent
65095096f9
commit
73b50e1e17
1 changed files with 2 additions and 0 deletions
|
|
@ -150,6 +150,8 @@ class StatePoint(object):
|
|||
|
||||
def __exit__(self, *exc):
|
||||
self._f.close()
|
||||
if self._summary is not None:
|
||||
self._summary._f.close()
|
||||
|
||||
@property
|
||||
def cmfd_on(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue