Fixed priordens needs to be properly initialized in remote, slave sessions.
parent
89f2e8009f
commit
5d9f6ef756
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue