@@ -173,8 +173,7 @@ function SciMLBase.__init(prob::AbstractNonlinearProblem{uType, iip},
173173 J = initialization_cache (nothing )
174174 inv_workspace, J = INV ? __safe_inv_workspace (J) : (nothing , J)
175175 descent_cache = __internal_init (prob, alg. descent, J, fu, u; abstol, reltol,
176- internalnorm,
177- linsolve_kwargs, pre_inverted = Val (INV), timer)
176+ internalnorm, linsolve_kwargs, pre_inverted = Val (INV), timer)
178177 du = get_du (descent_cache)
179178
180179 reinit_rule_cache = __internal_init (alg. reinit_rule, J, fu, u, du)
@@ -191,8 +190,7 @@ function SciMLBase.__init(prob::AbstractNonlinearProblem{uType, iip},
191190 supports_trust_region (alg. descent) || error (" Trust Region not supported by \
192191 $(alg. descent) ." )
193192 trustregion_cache = __internal_init (prob, alg. trustregion, f, fu, u, p;
194- internalnorm,
195- kwargs... )
193+ internalnorm, kwargs... )
196194 GB = :TrustRegion
197195 end
198196
@@ -205,12 +203,7 @@ function SciMLBase.__init(prob::AbstractNonlinearProblem{uType, iip},
205203 GB = :LineSearch
206204 end
207205
208- update_rule_cache = __internal_init (prob,
209- alg. update_rule,
210- J,
211- fu,
212- u,
213- du;
206+ update_rule_cache = __internal_init (prob, alg. update_rule, J, fu, u, du;
214207 internalnorm)
215208
216209 trace = init_nonlinearsolve_trace (alg, u, fu, ApplyArray (__zero, J), du;
@@ -256,8 +249,7 @@ function __step!(cache::ApproximateJacobianSolveCache{INV, GB, iip};
256249 elseif recompute_jacobian === nothing
257250 # Standard Step
258251 reinit = __internal_solve! (cache. reinit_rule_cache, cache. J, cache. fu,
259- cache. u,
260- cache. du)
252+ cache. u, cache. du)
261253 reinit && (countable_reinit = true )
262254 elseif recompute_jacobian
263255 reinit = true # Force ReInitialization: Don't count towards resetting
@@ -276,9 +268,7 @@ function __step!(cache::ApproximateJacobianSolveCache{INV, GB, iip};
276268 end
277269
278270 if reinit
279- J_init = __internal_solve! (cache. initialization_cache,
280- cache. fu,
281- cache. u,
271+ J_init = __internal_solve! (cache. initialization_cache, cache. fu, cache. u,
282272 Val (true ))
283273 cache. J = INV ? __safe_inv!! (cache. inv_workspace, J_init) : J_init
284274 J = cache. J
@@ -318,8 +308,7 @@ function __step!(cache::ApproximateJacobianSolveCache{INV, GB, iip};
318308 elseif GB === :TrustRegion
319309 @static_timeit cache. timer " trustregion" begin
320310 tr_accepted, u_new, fu_new = __internal_solve! (cache. trustregion_cache, J,
321- cache. fu,
322- cache. u, δu, descent_intermediates)
311+ cache. fu, cache. u, δu, descent_intermediates)
323312 if tr_accepted
324313 @bb copyto! (cache. u, u_new)
325314 @bb copyto! (cache. fu, fu_new)
0 commit comments