More explicit error message when posterior mode file is outdated

time-shift
Sébastien Villemot 2013-03-08 14:31:15 +01:00
parent 578368954e
commit 5c8efaae6c
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ dr = oo_.dr;
%% load mode file is necessary
if ~isempty(options_.mode_file) && ~options_.mh_posterior_mode_estimation
load(options_.mode_file);
if length(xparam1) ~= nx
error([ 'ESTIMATION: the posterior mode file ' options_.mode_file ' has been generated using another specification. Please delete it and recompute the posterior mode.'])
end
end
%% load optimal_mh_scale parameter if previous run was with