153153
154154function SciMLBase. __init (
155155 prob:: AbstractNonlinearProblem{uType, iip} , alg:: GeneralizedFirstOrderAlgorithm ,
156- args... ; stats= empty_nlstats (), alias_u0 = false , maxiters = 1000 , abstol = nothing ,
157- reltol = nothing , maxtime = nothing , termination_condition = nothing ,
158- internalnorm = DEFAULT_NORM, linsolve_kwargs = (;), kwargs... ) where {uType, iip}
156+ args... ; stats = empty_nlstats (), alias_u0 = false , maxiters = 1000 ,
157+ abstol = nothing , reltol = nothing , maxtime = nothing ,
158+ termination_condition = nothing , internalnorm = DEFAULT_NORM,
159+ linsolve_kwargs = (;), kwargs... ) where {uType, iip}
159160 timer = get_timer_output ()
160161 @static_timeit timer " cache construction" begin
161162 (; f, u0, p) = prob
@@ -173,8 +174,8 @@ function SciMLBase.__init(
173174 prob, alg, f, fu, u, p; stats, autodiff = alg. jacobian_ad, linsolve,
174175 jvp_autodiff = alg. forward_ad, vjp_autodiff = alg. reverse_ad)
175176 J = jac_cache (nothing )
176- descent_cache = __internal_init (prob, alg. descent, J, fu, u; stats, abstol, reltol,
177- internalnorm, linsolve_kwargs, timer)
177+ descent_cache = __internal_init (prob, alg. descent, J, fu, u; stats, abstol,
178+ reltol, internalnorm, linsolve_kwargs, timer)
178179 du = get_du (descent_cache)
179180
180181 if alg. trustregion != = missing && alg. linesearch != = missing
0 commit comments