Skip to content

Commit 97482de

Browse files
committed
debug KTR
1 parent 0c91d02 commit 97482de

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/PreProcess/PreProcessTRK.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ function preprocess(PData::PDataTRK, Hop, g, gNorm2, calls, max_calls, α)
1515
if slv.converged[1]
1616
return norm(slv.x[1]) α
1717
else
18-
if length(ind) > 1
19-
for i in 1:length(shifts)
20-
if !slv.not_cv[i] && (norm(slv.x[i]) - α > 0)
21-
return true
22-
end
18+
for i in 1:length(shifts)
19+
if !slv.not_cv[i] && (norm(slv.x[i]) - α > 0)
20+
return true
2321
end
2422
end
2523
end

test/allocation_test_main.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ for (Workspace, limit) in (
6666
(HessDense, 286624),
6767
(HessSparse, 84016),
6868
(HessSparseCOO, 0), # independent of `n`
69-
(HessOp, 1344), # independent of `n`
69+
(HessOp, 2304), # independent of `n`
7070
)
7171
who = Workspace(nlp, n)
7272
alloc_hessian(who, nlp, x0) = @allocated ARCTR.hessian!(who, nlp, x0)

0 commit comments

Comments
 (0)