Skip to content

Commit

Permalink
Split command before running
Browse files Browse the repository at this point in the history
To avoid the following error:

```
FileNotFoundError: [Errno 2] No such file or directory: 'mpirun -n 4 /path/to/ImpactTexe'
```
  • Loading branch information
mattachu committed Nov 4, 2019
1 parent 30526d0 commit fa1cdb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GUI/src/ImpactMainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,7 @@ def startImpact(self):
elif np>1:
cmd = self.MPI_EXE.get()+' -n '+str(np)+' '+ImpactExe
print(cmd)
cmd = cmd.split()
p=subprocess.Popen(cmd,stdout=subprocess.PIPE,bufsize=1)
for line in iter(p.stdout.readline,b''):
print(('>>{}'.format(line.rstrip())))
Expand All @@ -963,6 +964,7 @@ def startImpact(self):
elif np>1:
cmd = self.MPI_EXE.get()+' -n '+str(np)+' '+ImpactExe
print(cmd)
cmd = cmd.split()
p=subprocess.Popen(cmd,stdout=subprocess.PIPE,bufsize=1)
for line in iter(p.stdout.readline,b''):
print(('>>{}'.format(line.rstrip())))
Expand Down

0 comments on commit fa1cdb4

Please sign in to comment.