Commit 8ccebd9e authored by Johannes Pfeifer 's avatar Johannes Pfeifer Committed by Stéphane Adjemian

DsgeSmoother.m: provide informative error instead of crashing when model cannot be solved

parent 131a68ea
...@@ -104,6 +104,10 @@ oo_.dr.restrict_columns = bayestopt_.smoother_restrict_columns; ...@@ -104,6 +104,10 @@ oo_.dr.restrict_columns = bayestopt_.smoother_restrict_columns;
[T,R,SteadyState,info,M_,options_,oo_] = dynare_resolve(M_,options_,oo_); [T,R,SteadyState,info,M_,options_,oo_] = dynare_resolve(M_,options_,oo_);
if info~=0
print_info(info,options_.noprint, options_);
return
end
oo_.dr.restrict_var_list = oldoo.restrict_var_list; oo_.dr.restrict_var_list = oldoo.restrict_var_list;
oo_.dr.restrict_columns = oldoo.restrict_columns; oo_.dr.restrict_columns = oldoo.restrict_columns;
......
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