mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Get rid of finally statement from run_in_memory function
This commit is contained in:
parent
a236d4c8e6
commit
f5d972475f
1 changed files with 2 additions and 4 deletions
|
|
@ -720,10 +720,8 @@ class CMFDRun(object):
|
|||
# Run and pass arguments to C API run_in_memory function
|
||||
with openmc.capi.run_in_memory(**kwargs):
|
||||
self.init()
|
||||
try:
|
||||
yield
|
||||
finally:
|
||||
self.finalize()
|
||||
yield
|
||||
self.finalize()
|
||||
|
||||
def iter_batches(self):
|
||||
# TODO add function description
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue