Commit 6eba462c authored by michel's avatar michel
Browse files

v4.1: fixing bug in 2nd order approximation when there are no variable...

v4.1: fixing bug in 2nd order approximation when there are no variable appearing in the model at some intermediary lead or lag


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2984 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 26451137
......@@ -190,7 +190,7 @@ function [dr,info,M_,options_,oo_] = dr1(dr,task,M_,options_,oo_)
[junk,jacobia_] = feval([M_.fname '_dynamic'],z,[oo_.exo_simul ...
oo_.exo_det_simul], M_.params, it_);
elseif options_.order == 2
[junk,jacobia_,hessian] = feval([M_.fname '_dynamic'],z,...
[junk,jacobia_,hessian1] = feval([M_.fname '_dynamic'],z,...
[oo_.exo_simul ...
oo_.exo_det_simul], M_.params, it_);
end
......@@ -505,7 +505,8 @@ function [dr,info,M_,options_,oo_] = dr1(dr,task,M_,options_,oo_)
kk = reshape([1:nk^2],nk,nk);
kk1 = kk(kk1,kk1);
%[junk,junk,hessian] = feval([M_.fname '_dynamic'],z, oo_.exo_steady_state);
hessian(:,kk1(:)) = hessian;
hessian(:,kk1(:)) = hessian1;
clear hessian1
%oo_.exo_simul = tempex ;
%clear tempex
......
Supports Markdown
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