Skip to content

Commit 356eef3

Browse files
MohamedLaghdafHABIBOULLAHdpo
authored andcommitted
update sigma of the subsolver
1 parent 0eb8c3f commit 356eef3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/R2N.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ function R2N(
186186

187187
subsolver_options.ϵa = k == 1 ? 1.0e-3 : min(sqrt_ξ1_νInv ^ (1.5) , sqrt_ξ1_νInv * 1e-3)
188188
verbose > 0 && @debug "setting inner stopping tolerance to" subsolver_options.optTol
189+
subsolver_options.σk = σk
189190
subsolver_args = subsolver == R2DH ? (SpectralGradient(νInv, f.meta.nvar),) : ()
190191
s, iter, _ = with_logger(subsolver_logger) do
191192
subsolver(φ, ∇φ!, ψ, subsolver_args..., subsolver_options, s)
@@ -199,6 +200,7 @@ function R2N(
199200
# is not modified if there is an error
200201
subsolver_options.ν = ν_subsolver
201202
subsolver_options.ϵa = ϵ_subsolver_init
203+
subsolver_options.σk = σk
202204
Complex_hist[k] = iter
203205

204206
xkn .= xk .+ s

0 commit comments

Comments
 (0)