From 328592ea0df08c0f9a63a3943d5374ca7142bba0 Mon Sep 17 00:00:00 2001 From: "T.Aoyama" Date: Mon, 2 Sep 2024 17:12:21 +0900 Subject: [PATCH] fix keyword search for parallel command --- src/moller/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/moller/main.py b/src/moller/main.py index 0d57bea..59fdcad 100644 --- a/src/moller/main.py +++ b/src/moller/main.py @@ -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 + '"')