Commit 6d6e3020 authored by ratto's avatar ratto
Browse files

_static file name defined also when _steadystate file is available

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1236 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 28da4a09
......@@ -31,11 +31,11 @@ end
dr.ys = ys;
check1 = 0;
% testing for steadystate file
fh = str2func([M_.fname '_static']);
if options_.steadystate_flag
[dr.ys,check1] = feval([M_.fname '_steadystate'],dr.ys,...
[oo_.exo_steady_state; oo_.exo_det_steady_state]);
else
fh = str2func([M_.fname '_static']);
% testing if ys isn't a steady state or if we aren't computing Ramsey policy
if max(abs(feval(fh,dr.ys,[oo_.exo_steady_state; oo_.exo_det_steady_state]))) ...
> options_.dynatol & options_.ramsey_policy == 0
......
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