Commit 224ccb7b authored by Johannes Pfeifer 's avatar Johannes Pfeifer Committed by Stéphane Adjemian (Charybdis)

sim1_linear.m: change hard-coded tolerance to option

The tolerance for the steady state check should depend on the accuracy of the steady state computation
parent 4adebd44
......@@ -116,7 +116,7 @@ x = repmat(transpose(steadystate_x), 1+M.maximum_exo_lag+M.maximum_exo_lead, 1);
[d1, jacobian] = dynamicmodel(z, x, params, steadystate_y, M.maximum_exo_lag+1);
% Check that the dynamic model was evaluated at the steady state.
if max(abs(d1))>1e-12
if max(abs(d1))>options.solve_tolf
error('Jacobian is not evaluated at the steady state!')
Markdown is supported
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