Commit 5115f843 authored by michel's avatar michel
Browse files

v4 resol.m: correcting bug with linear models

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1244 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 4271844f
......@@ -42,9 +42,12 @@ else
if options_.linear == 0
% nonlinear models
[dr.ys,check1] = dynare_solve(fh,dr.ys,options_.jacobian_flag,...
[oo_.exo_steady_state; oo_.exo_det_steady_state]);
[oo_.exo_steady_state; ...
oo_.exo_det_steady_state]);
else
% linear models
[fvec,jacob] = feval(fh,dr.ys,[oo_.exo_steady_state;...
oo_.exo_det_steady_state]);
dr.ys = dr.ys-jacob\fvec;
end
end
......
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