From 21d246db248d4c6e3e604813c818896c1461fb62 Mon Sep 17 00:00:00 2001 From: FHoltorf <32248677+FHoltorf@users.noreply.github.com> Date: Tue, 26 Sep 2023 17:44:36 -0400 Subject: [PATCH] improve comment --- src/trustRegion.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/trustRegion.jl b/src/trustRegion.jl index 565fd3db9..902517769 100644 --- a/src/trustRegion.jl +++ b/src/trustRegion.jl @@ -329,7 +329,9 @@ function perform_step!(cache::TrustRegionCache{true}) cache.stats.njacs += 1 end - linres = dolinsolve(alg.precs, linsolve, A = J, b = _vec(fu), # cache.H, b = _vec(cache.g), + # do not use A = cache.H, b = _vec(cache.g) since it is equivalent + # to A = cache.J, b = _vec(fu) as long as the Jacobian is non-singular + linres = dolinsolve(alg.precs, linsolve, A = J, b = _vec(fu), linu = _vec(u_tmp), p = p, reltol = cache.abstol) cache.linsolve = linres.cache