mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +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()
|
||||
{
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user