Fixed priordens needs to be properly initialized in remote, slave sessions.

time-shift
Marco Ratto 2010-08-25 13:39:48 +02:00
parent 89f2e8009f
commit 5d9f6ef756
2 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,9 @@ if whoiam
Parallel=myinputs.Parallel;
MasterName=myinputs.MasterName;
DyMo=myinputs.DyMo;
% initialize persistent variables in priordens()
priordens(xparam1,bayestopt_.pshape,bayestopt_.p6,bayestopt_.p7, ...
bayestopt_.p3,bayestopt_.p4,1);
end
% (re)Set the penalty.

View File

@ -97,6 +97,9 @@ if whoiam
Parallel=myinputs.Parallel;
MasterName=myinputs.MasterName;
DyMo=myinputs.DyMo;
% initialize persistent variables in priordens()
priordens(xparam1,bayestopt_.pshape,bayestopt_.p6,bayestopt_.p7, ...
bayestopt_.p3,bayestopt_.p4,1);
end
% (re)Set the penalty