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

time-shift
Sébastien Villemot 2010-10-14 11:36:13 +02:00
parent 153f627dfe
commit 609293b398
1 changed files with 4 additions and 4 deletions

View File

@ -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));