Bug fix. Dynare configuration hook was not evaluated.

(cherry picked from commit e2b20f3e)
parent 06e8909f
......@@ -125,8 +125,15 @@ M_.osr.variable_weights=[];
M_.osr.variable_indices =[];
M_.instr_id=[];
% 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);
......
  • @stepan-a What did this bug do? It is missing from the bug-list and I don't know what is going on here. Is the global_init_file an undocumented feature?

Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment