Skip to content

Commit 1161d43

Browse files
authored
Fix nothing in decrease function (#144)
1 parent a002d37 commit 1161d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/increase_decrease.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function decrease(X::PDataKARC, α::T, TR::ARTrustRegion) where {T}
3131
α2 = max(X.norm_dirs[X.indmin] / X.shifts[X.indmin], eps(T))
3232
end
3333

34-
if X.indmin == last & (α2 > targetα)
34+
if (isnothing(X.indmin) | isnothing(last) | X.indmin == last) & (α2 > targetα)
3535
@warn "PreProcessKARC failure: α2=$α2"
3636
end
3737

0 commit comments

Comments
 (0)