Skip to content
Snippets Groups Projects
Verified Commit 37536b51 authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

sim1.m: provide missing function input to nested function

(cherry picked from commit 632c0a39)
parent 6e667c8f
Branches
Tags
1 merge request!1815WIP Cherry-picks for 4.6
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment