Bug fix (introduced in the previous commit).

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2767 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
stepan 2009-06-12 09:40:32 +00:00
parent 1c5e2df2a0
commit 771a12c8ae
1 changed files with 8 additions and 8 deletions

View File

@ -228,27 +228,27 @@ function [xparam1, estim_params_, bayestopt_, lb, ub, M_]=set_prior(estim_params
% I save the prior definition if the prior has changed.
if exist([ M_.dname '/prior/definition.mat'])
bayestopt_old = load([M_.dname '/prior/definition.mat'],'bayestopt_');
old = load([M_.dname '/prior/definition.mat'],'bayestopt_');
prior_has_changed = 0;
if any(bayestopt_.p1-bayestopt_old.p1)
if any(bayestopt_.p1-old.bayestopt_.p1)
prior_has_changed = 1;
end
if any(bayestopt_.p2-bayestopt_old.p2)
if any(bayestopt_.p2-old.bayestopt_.p2)
prior_has_changed = 1;
end
if any(bayestopt_.p3-bayestopt_old.p3)
if any(bayestopt_.p3-old.bayestopt_.p3)
prior_has_changed = 1;
end
if any(bayestopt_.p4-bayestopt_old.p4)
if any(bayestopt_.p4-old.bayestopt_.p4)
prior_has_changed = 1;
end
if any(bayestopt_.p5-bayestopt_old.p5)
if any(bayestopt_.p5-old.bayestopt_.p5)
prior_has_changed = 1;
end
if any(bayestopt_.p6-bayestopt_old.p6)
if any(bayestopt_.p6-old.bayestopt_.p6)
prior_has_changed = 1;
end
if any(bayestopt_.p7-bayestopt_old.p7)
if any(bayestopt_.p7-old.bayestopt_.p7)
prior_has_changed = 1;
end
if prior_has_changed