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
b12ace674c
commit
e734952e79
@ -30,12 +30,12 @@
|
|||||||
|
|
||||||
getNumberOfProcessors()
|
getNumberOfProcessors()
|
||||||
{
|
{
|
||||||
sed -ne 's/^numberOfSubdomains *\(.*\);/\1/p' system/decomposeParDict
|
sed -ne 's/^numberOfSubdomains\s*\(.*\);/\1/p' system/decomposeParDict
|
||||||
}
|
}
|
||||||
|
|
||||||
getApplication()
|
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()
|
runApplication()
|
||||||
|
Loading…
Reference in New Issue
Block a user