Skip to content

Commit

Permalink
fix keyword search for parallel command
Browse files Browse the repository at this point in the history
  • Loading branch information
aoymt committed Sep 2, 2024
1 parent 46cc14a commit 328592e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moller/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def generate(self, fp):
lines = self.code.splitlines()
lines_new = []
for line in lines:
if re.match(r'(srun|mpirun|mpiexec)', line):
if re.search(r'\b(srun|mpirun|mpiexec)\b', line):
line = re.sub(r'(srun|mpirun|mpiexec)', srun_str, line)

lines_new.append(r' DEBUG "$_work_item: ' + line + '"')
Expand Down

0 comments on commit 328592e

Please sign in to comment.