Skip to content

Commit

Permalink
No need to drum up MPI for one rank
Browse files Browse the repository at this point in the history
  • Loading branch information
GiudGiud committed Dec 30, 2022
1 parent 0674f2e commit bf14a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/mooseutils/mooseutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def run_executable(app_path, *args, mpi=None, suppress_output=False):
A function for running an application.
"""
import subprocess
if mpi and isinstance(mpi, int):
if mpi and isinstance(mpi, int) and mpi > 1:
cmd = ['mpiexec', '-n', str(mpi), app_path]
else:
cmd = [app_path]
Expand Down

0 comments on commit bf14a25

Please sign in to comment.