4.1: correcting a rarely occuring bug

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2672 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
michel 2009-05-13 19:58:28 +00:00
parent 25ca5d3ee8
commit 58e512dd49
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ TotalNumberOfMhDraws = sum(record.MhDraws(:,1));
MAX_nruns = ceil(options_.MaxNumberOfBytes/(npar+2)/8);
FirstDraw = max(1,floor(options_.mh_drop*TotalNumberOfMhDraws));
FirstMhFile = ceil(FirstDraw/MAX_nruns);
FirstLine = FirstDraw-(FirstMhFile-1)*MAX_nruns+1;
FirstLine = FirstDraw-(FirstMhFile-1)*MAX_nruns;
record.KeepedDraws.FirstMhFile = FirstMhFile;
record.KeepedDraws.FirstLine = FirstLine;
if (TotalNumberOfMhFiles-1)-(FirstMhFile+1)+1 > 0