Bug fix. Dynare configuration hook was not evaluated.

(cherry picked from commit e2b20f3e3e)
time-shift
Stéphane Adjemian (Charybdis) 2020-03-26 09:47:05 +01:00
parent 6ffbda470e
commit e90549d2df
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 11 additions and 2 deletions

View File

@ -117,8 +117,14 @@ M_.osr.param_bounds=[];
M_.osr.variable_weights=[];
M_.osr.variable_indices =[];
% Set default options_ in function below; this change was made for the GUI
options_ = default_option_values(M_);
% Set default options_ but keep global_init_file field if defined in the driver.
if isstruct(options_) && isfield(options_, 'global_init_file')
global_init_file = options_.global_init_file;
options_ = default_option_values(M_);
options_.global_init_file = global_init_file;
else
options_ = default_option_values(M_);
end
% initialize persistent variables in priordens()
priordens([],[],[],[],[],[],1);
@ -137,3 +143,6 @@ set_dynare_seed('default');
if isfield(options_, 'global_init_file')
run(options_.global_init_file);
end
end