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)