From d7b7ce89401cea586d05d87d7a6fb9c5cb47339e Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Wed, 2 Sep 2020 12:41:31 +0200 Subject: [PATCH] AnalyseComputationalEnvironment.m: define missing command string used in error message --- matlab/parallel/AnalyseComputationalEnvironment.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/matlab/parallel/AnalyseComputationalEnvironment.m b/matlab/parallel/AnalyseComputationalEnvironment.m index 08bf0d2ed..e680a46b7 100644 --- a/matlab/parallel/AnalyseComputationalEnvironment.m +++ b/matlab/parallel/AnalyseComputationalEnvironment.m @@ -522,13 +522,16 @@ for Node=1:length(DataInput) % To obtain a recoursive function remove the 'for' if (DataInput(Node).Local == 1) if Environment if ~ismac - [si0, de0] = system('nproc'); + command_string = 'nproc'; + [si0, de0] = system(command_string); else - [si0, de0] = system('sysctl -n hw.ncpu'); + command_string = 'sysctl -n hw.ncpu'; + [si0, de0] = system(command_string); Environment1 = 2; end else - [si0, de0] = system(['psinfo \\']); + command_string = ['psinfo \\']; + [si0, de0] = system(command_string); end else if Environment