Use kwargs instead of kwargs.keys()

This commit is contained in:
Shikhar Kumar 2018-12-20 00:40:08 -05:00
parent c14680c26d
commit 9f63b5a3b7

View file

@ -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