From 6b24bdd45d23fe2088bc2f147e1ca40398a103c4 Mon Sep 17 00:00:00 2001
From: laurence <laurence>
Date: Tue, 11 Dec 2012 16:28:39 +0000
Subject: [PATCH] ENH: Add getNumberOfProcessors() to bin/tools/RunFunctions

---
 bin/tools/RunFunctions | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/tools/RunFunctions b/bin/tools/RunFunctions
index 093c6ed037c..3632a62d761 100644
--- a/bin/tools/RunFunctions
+++ b/bin/tools/RunFunctions
@@ -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
-- 
GitLab