mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user