From a06db3929abef1ff37398ff20717edb95e7645c3 Mon Sep 17 00:00:00 2001 From: Craig Warren Date: Mon, 13 Mar 2017 17:48:42 +0000 Subject: [PATCH] Corrected instance of numbermodelruns variable name change to args.n --- gprMax/gprMax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprMax/gprMax.py b/gprMax/gprMax.py index b87263b2..c8edb18d 100644 --- a/gprMax/gprMax.py +++ b/gprMax/gprMax.py @@ -118,7 +118,7 @@ def run_main(args): else: # Mixed mode MPI with OpenMP or CUDA - MPI task farm for models with each model parallelised with OpenMP (CPU) or CUDA (GPU) if args.mpi: - if numbermodelruns == 1: + if args.n == 1: raise GeneralError('MPI is not beneficial when there is only one model to run') run_mpi_sim(args, inputfile, usernamespace)