mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Add getNumberOfProcessors() to bin/tools/RunFunctions
This commit is contained in:
@ -28,6 +28,11 @@
|
|||||||
# Miscellaneous functions for running tutorial cases
|
# Miscellaneous functions for running tutorial cases
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
getNumberOfProcessors()
|
||||||
|
{
|
||||||
|
sed -ne 's/^numberOfSubdomains *\(.*\);/\1/p' system/decomposeParDict
|
||||||
|
}
|
||||||
|
|
||||||
getApplication()
|
getApplication()
|
||||||
{
|
{
|
||||||
sed -ne 's/^ *application *\([a-zA-Z]*\) *;.*$/\1/p' system/controlDict
|
sed -ne 's/^ *application *\([a-zA-Z]*\) *;.*$/\1/p' system/controlDict
|
||||||
|
|||||||
Reference in New Issue
Block a user