sim1.m: provide missing function input to nested function

time-shift
Johannes Pfeifer 2020-01-06 09:06:18 +01:00
parent e2f91abcaf
commit 632c0a3943
1 changed files with 2 additions and 2 deletions

View File

@ -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;