Skip to content
Snippets Groups Projects
Commit 6b24bdd4 authored by laurence's avatar laurence
Browse files

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

parent cb3ebf5e
...@@ -28,6 +28,11 @@ ...@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment