Skip to content
Snippets Groups Projects
Commit 442bf232 authored by ratto's avatar ratto
Browse files

Fixed when one wants all the runs (no cut).

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1109 ac1d8469-bf42-47a9-8791-bf33cf982152
parent f19b66c4
Branches
Tags
No related merge requests found
...@@ -20,7 +20,7 @@ end ...@@ -20,7 +20,7 @@ end
TotalNumberOfMhFiles = sum(record.MhDraws(:,2)); TotalNumberOfMhFiles = sum(record.MhDraws(:,2));
TotalNumberOfMhDraws = sum(record.MhDraws(:,1)); TotalNumberOfMhDraws = sum(record.MhDraws(:,1));
MAX_nruns = ceil(options_.MaxNumberOfBytes/(npar+2)/8) MAX_nruns = ceil(options_.MaxNumberOfBytes/(npar+2)/8)
FirstDraw = floor(options_.mh_drop*TotalNumberOfMhDraws); FirstDraw = max(1,floor(options_.mh_drop*TotalNumberOfMhDraws));
FirstMhFile = ceil(FirstDraw/MAX_nruns); FirstMhFile = ceil(FirstDraw/MAX_nruns);
FirstLine = FirstDraw-(FirstMhFile-1)*MAX_nruns+1; FirstLine = FirstDraw-(FirstMhFile-1)*MAX_nruns+1;
record.KeepedDraws.FirstMhFile = FirstMhFile; record.KeepedDraws.FirstMhFile = FirstMhFile;
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment