Commit b6ad0a61 authored by Marco Ratto's avatar Marco Ratto
Browse files

bug fix for empty global variables

parent 2d217295
......@@ -68,7 +68,7 @@ while (etime(clock,t0)<1200 && ~isempty(fslave)) || ~isempty(dir(['stayalive',in
% loads values for fblck nblck fname fGlobalVar fInputVar
if exist('fGlobalVar'),
if exist('fGlobalVar') && ~isempty (fGlobalVar)
globalVars = fieldnames(fGlobalVar);
% for j=1:length(globalVars),
% eval(['global ',globalVars{j},';'])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment