Commit 91fa5024 authored by ratto's avatar ratto
Browse files

corrected bug in load prev. file

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@703 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 91f8b693
......@@ -284,7 +284,7 @@ InitSizeArray = min([MAX_nruns*ones(nblck) nruns],[],2);
for b = fblck:nblck
if (options_.load_mh_file~=0) & (fline(b)>1) & OpenOldFile(b)
load(['./' MhDirectoryName '/' M_.fname '_mh' int2str(NewFile(b)) ...
'_blck' int2str(b) '.'])
'_blck' int2str(b) '.mat'])
x2 = [x2;zeros(InitSizeArray(b)-fline(b)+1,npar)];
logpo2 = [logpo2;zeros(InitSizeArray(b)-fline(b)+1,1)];
OpenOldFile(b) = 0;
......@@ -345,4 +345,4 @@ save([MhDirectoryName '/' M_.fname '_mh_history'],'record');
disp(['MH: Number of mh files : ' int2str(NewFile(1)) ' per block.'])
disp(['MH: Total number of generated files : ' int2str(NewFile(1)*nblck) '.'])
disp(['MH: Total number of iterations : ' int2str((NewFile(1)-1)*MAX_nruns+irun-1) '.'])
disp(' ')
\ No newline at end of file
disp(' ')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment