Skip to content
Snippets Groups Projects
Verified Commit 686f8b23 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

AnalyseComputationalEnvironment.m: define missing command string used in error message

(cherry picked from commit d7b7ce89)
parent a4fe00e4
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment