Skip to content
Snippets Groups Projects
Commit e734952e authored by Henry's avatar Henry
Browse files

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
parent b12ace67
No related merge requests found
......@@ -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()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment