Added comments.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2755 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
stepan 2009-06-11 11:33:30 +00:00
parent b71a7a83ed
commit faaac5e6c0
1 changed files with 2 additions and 0 deletions

View File

@ -223,8 +223,10 @@ function [xparam1, estim_params_, bayestopt_, lb, ub, M_]=set_prior(estim_params
k = find(isnan(xparam1));
xparam1(k) = bayestopt_.p1(k);
% I create subfolder M_.dname/prior if needed.
CheckPath('prior');
% 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_');
prior_has_changed = 0;