From 5e7d9d39e579160a00b2cc04608befecacf684f4 Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Wed, 14 Apr 2010 17:17:22 +0200 Subject: [PATCH] 1) removed redundant loop defining x; 2) bug fix for remote slave sessions; --- matlab/prior_posterior_statistics_core.m | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/matlab/prior_posterior_statistics_core.m b/matlab/prior_posterior_statistics_core.m index 4feccdcbe..d490559bf 100644 --- a/matlab/prior_posterior_statistics_core.m +++ b/matlab/prior_posterior_statistics_core.m @@ -56,15 +56,6 @@ end MAX_momentsno =myinputs. MAX_momentsno; ifil=myinputs.ifil; - -if strcmpi(typee,'posterior'), - b=0; - while b<=B - b = b + 1; - [x(b,:), logpost(b,1)] = GetOneDraw(typee); - end -end - if ~strcmpi(typee,'prior'), x=myinputs.x; logpost=myinputs.logpost; @@ -279,7 +270,8 @@ for b=fpar:B elseif ~whoiam, waitbar(b/B,h); end - if mod(b,10)==0 & whoiam, + % if mod(b,10)==0 & whoiam, + if whoiam, fprintf('Done! \n'); waitbarString = [ 'Subdraw ' int2str(b) '/' int2str(B) ' done.']; fMessageStatus((b-fpar+1)/(B-fpar+1),whoiam,waitbarString, waitbarTitle, Parallel(ThisMatlab), MasterName, DyMo)