Fixed bug with checking for existence of MPI environment argument.

这个提交包含在:
craig-warren
2018-04-05 09:52:12 +01:00
父节点 6dca8adff0
当前提交 fe6e1180a8

查看文件

@@ -377,7 +377,7 @@ def run_mpi_sim(args, inputfile, usernamespace, optparams=None):
# N.B Spawned worker flag (--mpi-worker) applied to sys.argv when MPI.Spawn is called # N.B Spawned worker flag (--mpi-worker) applied to sys.argv when MPI.Spawn is called
# Get MPI communicator object either through argument or just get comm_world # Get MPI communicator object either through argument or just get comm_world
if args.mpicomm: if hasattr(args, 'mpicomm'):
comm = args.mpicomm comm = args.mpicomm
else: else:
comm = MPI.COMM_WORLD comm = MPI.COMM_WORLD