mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Use kwargs instead of kwargs.keys()
This commit is contained in:
parent
c14680c26d
commit
9f63b5a3b7
1 changed files with 1 additions and 1 deletions
|
|
@ -623,7 +623,7 @@ class CMFDRun(object):
|
|||
"""
|
||||
# Store intracomm for part of CMFD routine where MPI reduce and
|
||||
# broadcast calls are made
|
||||
if 'intracomm' in kwargs.keys() and kwargs['intracomm'] is not None:
|
||||
if 'intracomm' in kwargs and kwargs['intracomm'] is not None:
|
||||
self._intracomm = kwargs['intracomm']
|
||||
elif have_mpi:
|
||||
self._intracomm = MPI.COMM_WORLD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue