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()))