Skip to content

Commit

Permalink
Merge pull request #1 from issp-center-dev/fix_srun
Browse files Browse the repository at this point in the history
fix keyword search for parallel command
  • Loading branch information
aoymt authored Sep 2, 2024
2 parents 46cc14a + 328592e commit 80acde8
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 80acde8

Please sign in to comment.