dr1.m: move up error message for purely forward models, otherwise it is not displayed with k_order_perturbation
parent
153f627dfe
commit
609293b398
|
@ -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_);
|
||||
|
@ -254,10 +258,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));
|
||||
|
|
Loading…
Reference in New Issue