Commit e8c3758f authored by Johannes Pfeifer's avatar Johannes Pfeifer
Browse files

disclyap_fast.m: fix check for convergence with NaN

[skip CI]
parent 766fff88
Pipeline #5475 skipped
......@@ -59,7 +59,7 @@ while matd > tol && iter< max_iter
A0=A1;
iter=iter+1;
end
if iter==max_iter
if iter==max_iter || isnan(matd)
X=NaN(size(P0));
exitflag=1;
return
......
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