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
This commit is contained in:
parent
a6f6d8b7d3
commit
4baafccbe4
1 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# ========= |
|
||||
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
# \\ / O peration |
|
||||
# \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
# \\/ M anipulation |
|
||||
#------------------------------------------------------------------------------
|
||||
# License
|
||||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue