Skip to content
Snippets Groups Projects
Commit e253f77d authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

dr1.m: move up error message for purely forward models, otherwise it is not...

dr1.m: move up error message for purely forward models, otherwise it is not displayed with k_order_perturbation
(cherry picked from commit 609293b3)
parent 352cd84f
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,10 @@ function [dr,info,M_,options_,oo_] = dr1(dr,task,M_,options_,oo_)
info = 0;
if M_.maximum_endo_lag == 0 && options_.order > 1
error(['2nd and 3rd order approximation not implemented for purely forward models'])
end
if options_.k_order_solver;
dr = set_state_space(dr,M_);
[dr,info] = k_order_pert(dr,M_,options_,oo_);
......@@ -241,10 +245,6 @@ if M_.maximum_endo_lead == 0
return
end
if M_.maximum_endo_lag == 0 && options_.order > 1
error(['2nd and 3rd order approximation not implemented for purely forward models'])
end
%forward--looking models
if nstatic > 0
[Q,R] = qr(b(:,1:nstatic));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment