bug fix: precisely determine from which machine to get the output files

time-shift
Marco Ratto 2010-10-11 20:17:03 +02:00
parent 6a1826aa53
commit f079411126
1 changed files with 2 additions and 1 deletions

View File

@ -512,7 +512,8 @@ for j=1:totCPU,
load([fname,'_output_',int2str(j),'.mat'],'fOutputVar');
delete([fname,'_output_',int2str(j),'.mat']);
if isfield(fOutputVar,'OutputFileName'),
dynareParallelGetFiles([fOutputVar.OutputFileName],PRCDir,Parallel(1:totSlaves));
indPC=min(find(nCPU>=j));
dynareParallelGetFiles([fOutputVar.OutputFileName],PRCDir,Parallel(indPC));
end
if isfield(fOutputVar,'error'),
disp(['Job number ',int2str(j),' crashed with error:']);