Commit e29918b6 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge branch 'parallel_proposal' into 'master'

posterior_sampler.m: make sure proposal density fields are set in parallel

See merge request Dynare/dynare!1835
parents d52ea372 3c11ee95
......@@ -155,6 +155,10 @@ else
record.AcceptanceRatio(offset+1:sum(nBlockPerCPU(1:j)))=fout(j).record.AcceptanceRatio(offset+1:sum(nBlockPerCPU(1:j)));
record.FunctionEvalPerIteration(offset+1:sum(nBlockPerCPU(1:j)))=fout(j).record.FunctionEvalPerIteration(offset+1:sum(nBlockPerCPU(1:j)));
record.LastSeeds(offset+1:sum(nBlockPerCPU(1:j)))=fout(j).record.LastSeeds(offset+1:sum(nBlockPerCPU(1:j)));
if j==1
record.ProposalCovariance=fout(j).record.ProposalCovariance;
record.ProposalScaleVec=fout(j).record.ProposalScaleVec;
end
end
options_.parallel_info.parallel_recover = 0;
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment