fixed bug when one slave is local and others are remote

time-shift
Marco Ratto 2010-10-11 19:37:43 +02:00
parent 75dd6f0d7b
commit badda23160
1 changed files with 5 additions and 1 deletions

View File

@ -94,6 +94,11 @@ end
DirectoryName = CheckPath('metropolis');
RemoteFlag = 0;
for j=1:length(Parallel),
if Parallel(j).Local==0,
RemoteFlag = 1;
end
end
if whoiam
ifil=ifil(:,whoiam);
waitbarString = ['Please wait... Bayesian (posterior) subdraws (' int2str(fpar) 'of' int2str(B) ')...'];
@ -101,7 +106,6 @@ if whoiam
waitbarTitle=['Local '];
else
waitbarTitle=[Parallel(ThisMatlab).PcName];
RemoteFlag = 1;
end
fMessageStatus(0,whoiam,waitbarString, waitbarTitle, Parallel(ThisMatlab), MasterName, DyMo);
else