From a8b80428a089b8648047151464a290211a05e074 Mon Sep 17 00:00:00 2001 From: L-Nafaryus Date: Thu, 15 Apr 2021 18:57:01 +0500 Subject: [PATCH] Fast fix --- run.py | 1 + src/foam_utils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 7ac599f..948bcba 100644 --- a/run.py +++ b/run.py @@ -28,6 +28,7 @@ def main(): tasks = createTasks() for task in tasks: + logger.fancyline() logger.info(f"""main: task:\t{tasks.index(task) + 1} / {len(tasks)} cpu count:\t{os.cpu_count()} diff --git a/src/foam_utils.py b/src/foam_utils.py index 8decb1d..27afa1c 100644 --- a/src/foam_utils.py +++ b/src/foam_utils.py @@ -119,6 +119,6 @@ def simpleFoam(case: str = None): with open("simpleFoam.log", "r") as io: for line in io: if re.search("solution converged", line): - logger.info("simpleFoam:\n\t{}".format(line)) + logger.info("simpleFoam:\n\t{}".format(line.strip()))