Corrected method names for getting MPI rank and size.

这个提交包含在:
Craig Warren
2016-09-07 12:25:23 +01:00
父节点 2f3f8fed6d
当前提交 2bdf71bbee

查看文件

@@ -209,8 +209,8 @@ def run_mpi_sim(args, numbermodelruns, inputfile, usernamespace, optparams=None)
# Initializations and preliminaries # Initializations and preliminaries
comm = MPI.COMM_WORLD # get MPI communicator object comm = MPI.COMM_WORLD # get MPI communicator object
size = comm.size # total number of processes size = comm.Get_size() # total number of processes
rank = comm.rank # rank of this process rank = comm.Get_rank() # rank of this process
status = MPI.Status() # get MPI status object status = MPI.Status() # get MPI status object
name = MPI.Get_processor_name() # get name of processor/host name = MPI.Get_processor_name() # get name of processor/host