Skip to content
Snippets Groups Projects
Commit b3dfdfcc authored by Nicola Vigano's avatar Nicola Vigano
Browse files

Matlab 2015b: fixed a few bugs

parent 56656798
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,8 @@ function initialise_gt(ignore_id19)
end
[~, hostname] = system('hostname');
if (any(~cellfun(@isempty, regexpi(hostname, {'rnice', 'crunch', 'gpu'}))))
if (verLessThan('matlab','R2015b') ...
&& any(~cellfun(@isempty, regexpi(hostname, {'rnice', 'crunch', 'gpu'}))))
% This fixes a few problems with rendering on the ESRF cluster
opengl('software');
end
......
......@@ -37,11 +37,14 @@ function deps = gtGetFunctionDeps(functionNames, deps, pattern, exclude)
end
for name = functionNames
listing = depfun(name, '-toponly', '-quiet'); %#ok<DEPFUN>
% New suggested alternative is damn slow!! (78 seconds in this
% recursively filtered setting, otherwise 35 seconds, but still slow
% if compared to the 1.4 seconds of depfun)
% listing = matlab.codetools.requiredFilesAndProducts(name, 'toponly')';
if (verLessThan('matlab', 'R2015b'))
listing = depfun(name, '-toponly', '-quiet'); %#ok<DEPFUN>
% New suggested alternative is damn slow!! (78 seconds in this
% recursively filtered setting, otherwise 35 seconds, but still slow
% if compared to the 1.4 seconds of depfun)
else
listing = matlab.codetools.requiredFilesAndProducts(name, 'toponly')';
end
listing = setdiff(listing, intersect(deps, listing));
if (~isempty('pattern'))
listing = filterListing(listing, pattern, exclude);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment