ENH: Add getNumberOfProcessors() to bin/tools/RunFunctions

This commit is contained in:
laurence
2012-12-11 16:28:39 +00:00
parent cb3ebf5e50
commit 6b24bdd45d

View File

@ -28,6 +28,11 @@
# Miscellaneous functions for running tutorial cases
#------------------------------------------------------------------------------
getNumberOfProcessors()
{
sed -ne 's/^numberOfSubdomains *\(.*\);/\1/p' system/decomposeParDict
}
getApplication()
{
sed -ne 's/^ *application *\([a-zA-Z]*\) *;.*$/\1/p' system/controlDict