fix in RumOpenEMS_Parallel if no host list is given

pull/1/head
Thorsten Liebig 2012-08-02 13:28:11 +02:00
parent 6222d1299e
commit af062cacb1
1 changed files with 9 additions and 3 deletions

View File

@ -49,7 +49,14 @@ elseif ~isfield(Settings.SSH,'host_list')
end end
if (skip_parallel) if (skip_parallel)
RunOpenEMS(Sim_Paths, Sim_Files, opts, Settings) for n=1:numel(Sim_Paths)
if iscell(Sim_Files)
Sim_File = Sim_Files{n};
else
Sim_File = Sim_Files;
end
RunOpenEMS(Sim_Paths{n}, Sim_Files, opts, Settings)
end
stdout = []; stdout = [];
stderr = []; stderr = [];
return return
@ -65,8 +72,7 @@ end
queue = InitQueue('DependPath',{dir}, varargin{:}); queue = InitQueue('DependPath',{dir}, varargin{:});
% spawn multiple simulations % spawn multiple simulations
numSims = numel(Sim_Paths); for n=1:numel(Sim_Paths)
for n=1:numSims
if iscell(Sim_Files) if iscell(Sim_Files)
Sim_File = Sim_Files{n}; Sim_File = Sim_Files{n};
else else