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
time-shift
ratto 2006-11-27 14:45:12 +00:00
parent f19b66c4b2
commit 442bf232b0
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ end
TotalNumberOfMhFiles = sum(record.MhDraws(:,2));
TotalNumberOfMhDraws = sum(record.MhDraws(:,1));
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);
FirstLine = FirstDraw-(FirstMhFile-1)*MAX_nruns+1;
record.KeepedDraws.FirstMhFile = FirstMhFile;