Commit a95358ac authored by Sébastien Villemot's avatar Sébastien Villemot

Merge branch 'sim1' into 'master'

sim1.m: provide missing function input to nested function

See merge request Dynare/dynare!1691
parents bf102030 632c0a39
......@@ -99,7 +99,7 @@ for iter = 1:options.simul.maxit
break
end
if options.simul.robust_lin_solve
dy = -lin_solve_robust(A, res, verbose);
dy = -lin_solve_robust(A, res, verbose, options);
else
dy = -lin_solve(A, res, verbose);
end
......@@ -173,7 +173,7 @@ if relres > 1e-6 && verbose
fprintf('WARNING : Failed to find a solution to the linear system.\n');
end
function [ x, flag, relres ] = lin_solve_robust(A, b ,verbose)
function [ x, flag, relres ] = lin_solve_robust(A, b ,verbose, options)
if norm(b) < sqrt(eps) % then x = 0 is a solution
x = 0;
flag = 0;
......
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