From f8eedce31f45eb6ac77de9583b352d5cb81ac5a3 Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@jrc.ec.europa.eu> Date: Fri, 10 Feb 2012 22:03:03 +0100 Subject: [PATCH] typos in messages + second loop trap in checking hardware --- matlab/parallel/AnalyseComputationalEnvironment.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/matlab/parallel/AnalyseComputationalEnvironment.m b/matlab/parallel/AnalyseComputationalEnvironment.m index a3362c848..a6997895f 100644 --- a/matlab/parallel/AnalyseComputationalEnvironment.m +++ b/matlab/parallel/AnalyseComputationalEnvironment.m @@ -267,7 +267,7 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for' % strategy. if (~isempty(DataInput(Node).RemoteDrive)) - disp('[WARNING] The fields RemoteDrive should be empty under unix or max!'); + disp('[WARNING] The fields RemoteDrive should be empty under unix or mac!'); disp(' '); disp(['remove the string ',DataInput(Node).RemoteDrive,' from this field!']); disp(' '); @@ -544,6 +544,7 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for' si0=[]; de0=[]; + disp('Checking Hardware please wait ...'); if (DataInput(Node).Local == 1) if Environment, [si0 de0]=system('grep processor /proc/cpuinfo'); @@ -563,6 +564,10 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for' RealCPUnbr=GiveCPUnumber(de0); % Questo controllo penso che si possa MIGLIORARE!!!!! + if isempty (RealCPUnbr) && Environment==0, + [si0 de0]=system(['psinfo \\',DataInput(Node).ComputerName]); + end + RealCPUnbr=GiveCPUnumber(de0); if isempty (RealCPUnbr) % An error occurred when we try to know the Cpu/Cores -- GitLab