Skip to content

Commit

Permalink
update sigma of the subsolver
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedLaghdafHABIBOULLAH authored and dpo committed Jan 17, 2025
1 parent 0eb8c3f commit 356eef3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/R2N.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ function R2N(

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

xkn .= xk .+ s
Expand Down

0 comments on commit 356eef3

Please sign in to comment.