Skip to content
Snippets Groups Projects
Commit 321881c9 authored by michel's avatar michel
Browse files

4.0: merge changeset r2672 from trunk (rarely occuring bug in CutSample.m)

git-svn-id: https://www.dynare.org/svn/dynare/branches/4.0@2673 ac1d8469-bf42-47a9-8791-bf33cf982152
parent cbae02e0
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ TotalNumberOfMhDraws = sum(record.MhDraws(:,1)); ...@@ -51,7 +51,7 @@ TotalNumberOfMhDraws = sum(record.MhDraws(:,1));
MAX_nruns = ceil(options_.MaxNumberOfBytes/(npar+2)/8); MAX_nruns = ceil(options_.MaxNumberOfBytes/(npar+2)/8);
FirstDraw = max(1,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;
record.KeepedDraws.FirstMhFile = FirstMhFile; record.KeepedDraws.FirstMhFile = FirstMhFile;
record.KeepedDraws.FirstLine = FirstLine; record.KeepedDraws.FirstLine = FirstLine;
if (TotalNumberOfMhFiles-1)-(FirstMhFile+1)+1 > 0 if (TotalNumberOfMhFiles-1)-(FirstMhFile+1)+1 > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment