Skip to content
Snippets Groups Projects
Commit 2b3a5caf authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Merge pull request #621 from rattoma/4.4

metropolis bug fix with load_mh_file
parents f0a0561f eaedc6c9
Branches
Tags
No related merge requests found
......@@ -243,13 +243,14 @@ elseif options_.load_mh_file && ~options_.mh_recover
LastLineNumber = record.LastLineNumber;
if LastLineNumber < MAX_nruns
NewFile = ones(nblck,1)*LastFileNumber;
fline = ones(nblck,1)*(LastLineNumber+1);
else
NewFile = ones(nblck,1)*(LastFileNumber+1);
fline = ones(nblck,1);
end
ilogpo2 = record.LastLogPost;
ix2 = record.LastParameters;
fblck = 1;
fline = ones(nblck,1)*(LastLineNumber+1);
NumberOfPreviousSimulations = sum(record.MhDraws(:,1),1);
fprintf('Estimation::mcmc: I am writting a new mh-history file... ');
record.MhDraws = [record.MhDraws;zeros(1,3)];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment