From e734952e79f2f2cf832d1ee7a79137acbf8b95d3 Mon Sep 17 00:00:00 2001 From: Henry <Henry> Date: Thu, 14 May 2015 12:11:44 +0100 Subject: [PATCH] bin/tools/RunFunctions: handle tabs and spaces when retrieving entries from dictionaries Patch supplied by Timm Severin Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1689 --- bin/tools/RunFunctions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tools/RunFunctions b/bin/tools/RunFunctions index 3632a62d761..e37e4654439 100644 --- a/bin/tools/RunFunctions +++ b/bin/tools/RunFunctions @@ -30,12 +30,12 @@ getNumberOfProcessors() { - sed -ne 's/^numberOfSubdomains *\(.*\);/\1/p' system/decomposeParDict + sed -ne 's/^numberOfSubdomains\s*\(.*\);/\1/p' system/decomposeParDict } getApplication() { - sed -ne 's/^ *application *\([a-zA-Z]*\) *;.*$/\1/p' system/controlDict + sed -ne 's/^ *application\s*\([a-zA-Z]*\)\s*;.*$/\1/p' system/controlDict } runApplication() -- GitLab