Corrected instance of numbermodelruns variable name change to args.n

这个提交包含在:
Craig Warren
2017-03-13 17:48:42 +00:00
父节点 1e9d571717
当前提交 a06db3929a

查看文件

@@ -118,7 +118,7 @@ def run_main(args):
else: else:
# Mixed mode MPI with OpenMP or CUDA - MPI task farm for models with each model parallelised with OpenMP (CPU) or CUDA (GPU) # 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 args.mpi:
if numbermodelruns == 1: if args.n == 1:
raise GeneralError('MPI is not beneficial when there is only one model to run') raise GeneralError('MPI is not beneficial when there is only one model to run')
run_mpi_sim(args, inputfile, usernamespace) run_mpi_sim(args, inputfile, usernamespace)