Skip to content
Snippets Groups Projects
Verified Commit 208c7d02 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

stoch_simul: handle case where hessian was not computed by the preprocessor

occurs when .mod file was run outside of the GUI and order was set to 1 in one of the computation commands
parent f8e62b64
Branches
No related tags found
No related merge requests found
......@@ -217,6 +217,9 @@ uicontrol( ...
backup = gui_auxiliary.backup_options(options_);
options_ = default_option_values(M_);
options_ = gui_auxiliary.add_backup_to_options(options_, backup);
if ~isfield(M_, 'hessian_eq_zero')
options_.order = 1;
end
if any([handles.shocksTable.Data{:,1}])
options_.irf_shocks = char(handles.shocksTable.Data([handles.shocksTable.Data{:,1}],2));
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment