Skip to content

Commit e05e9f9

Browse files
committed
update comments
1 parent 7576ade commit e05e9f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PreProcess/PreProcessLSKARC.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function preprocess(PData::PDataLSKARC, Jx, Fx, gNorm2, calls, max_calls, α)
1313
ind = setdiff(1:length(shifts), findall(.!slv.converged))
1414
if length(ind) > 1
1515
for i in ind
16-
if (norm(slv.x[i]) / shifts[i] - α > 0)
16+
if (norm(slv.x[i]) / shifts[i] - α > 0) # for lsqr: sqrt(slv.xNorm²[i])
1717
return true
1818
end
1919
end
@@ -37,7 +37,7 @@ function preprocess(PData::PDataLSKARC, Jx, Fx, gNorm2, calls, max_calls, α)
3737
PData.positives .= solver.converged
3838
for i = 1:nshifts
3939
@. PData.xShift[i] = -solver.x[i]
40-
PData.norm_dirs[i] = norm(solver.x[i]) # Get it from cg_lanczos?
40+
PData.norm_dirs[i] = norm(solver.x[i])
4141
end
4242
PData.shifts .= shifts
4343
PData.nshifts = nshifts

0 commit comments

Comments
 (0)