Skip to content
Snippets Groups Projects
Commit bf607ce6 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

Make sure no stale _posterior_draws.mat files are present

May crash compute_moments_varendo.m due to more files being present than generated in the current run
parent 839e7075
Branches
Tags
No related merge requests found
...@@ -100,6 +100,8 @@ SampleAddress = sortrows(SampleAddress,[3 2]); ...@@ -100,6 +100,8 @@ SampleAddress = sortrows(SampleAddress,[3 2]);
% Selected draws in the posterior distribution, and if drsize>0 % Selected draws in the posterior distribution, and if drsize>0
% reduced form solutions, are saved on disk. % reduced form solutions, are saved on disk.
if info if info
%delete old stale files before creating new ones
delete_stale_file([BaseName '_posterior_draws*.mat'])
if SampleSize*drawsize <= MAX_mega_bytes% The posterior draws are saved in one file. if SampleSize*drawsize <= MAX_mega_bytes% The posterior draws are saved in one file.
pdraws = cell(SampleSize,info); pdraws = cell(SampleSize,info);
old_mhfile = 0; old_mhfile = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment