From 2bdf71bbee47251a9b959cb8d24830a0e86e0ad2 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Wed, 7 Sep 2016 12:25:23 +0100 Subject: [PATCH] Corrected method names for getting MPI rank and size. --- gprMax/gprMax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gprMax/gprMax.py b/gprMax/gprMax.py index 65f427e6..cab8a5a4 100644 --- a/gprMax/gprMax.py +++ b/gprMax/gprMax.py @@ -209,8 +209,8 @@ def run_mpi_sim(args, numbermodelruns, inputfile, usernamespace, optparams=None) # Initializations and preliminaries comm = MPI.COMM_WORLD # get MPI communicator object - size = comm.size # total number of processes - rank = comm.rank # rank of this process + size = comm.Get_size() # total number of processes + rank = comm.Get_rank() # rank of this process status = MPI.Status() # get MPI status object name = MPI.Get_processor_name() # get name of processor/host