fix in RumOpenEMS_Parallel if no host list is given
parent
6222d1299e
commit
af062cacb1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue