@@ -45,12 +45,10 @@ function init_cache(prob::DiffEqBase.AbstractODEProblem, alg::IMEXAlgorithm{Unco
4545 return IMEXARKCache (U, T_lim, T_exp, T_imp, temp, γ, newtons_method_cache)
4646end
4747
48- step_u! (integrator, cache:: IMEXARKCache ) = step_u! (integrator, cache, integrator. sol. prob. f, integrator. alg. name)
49-
50- # include("hard_coded_ars343.jl")
5148# generic fallback
52- function step_u! (integrator, cache:: IMEXARKCache , f, name )
49+ function step_u! (integrator, cache:: IMEXARKCache )
5350 (; u, p, t, dt, alg) = integrator
51+ (; f) = integrator. sol. prob
5452 (; post_explicit!, post_implicit!) = f
5553 (; T_lim!, T_exp!, T_imp!, lim!, dss!) = f
5654 (; tableau, newtons_method) = alg
@@ -107,11 +105,10 @@ function step_u!(integrator, cache::IMEXARKCache, f, name)
107105 @. temp = U
108106 post_explicit! (U, p, t_imp)
109107 # TODO : can/should we remove these closures?
110- implicit_equation_residual! =
111- (residual, Ui) -> begin
112- T_imp! (residual, Ui, p, t_imp)
113- @. residual = temp + dt * a_imp[i, i] * residual - Ui
114- end
108+ implicit_equation_residual! = (residual, Ui) -> begin
109+ T_imp! (residual, Ui, p, t_imp)
110+ @. residual = temp + dt * a_imp[i, i] * residual - Ui
111+ end
115112 implicit_equation_jacobian! = (jacobian, Ui) -> T_imp!. Wfact (jacobian, Ui, p, dt * a_imp[i, i], t_imp)
116113 call_post_implicit! = Ui -> begin
117114 post_implicit! (Ui, p, t_imp)
0 commit comments