@@ -103,10 +103,10 @@ function SciMLBase.__init(prob::BVProblem, alg::AbstractMIRK; dt = 0.0, abstol =
103103 vecf, vecbc
104104 end
105105
106- prob_ = ! (prob. u0 isa AbstractArray) ? remake (prob; u0 = X) : prob
106+ # prob_ = !(prob.u0 isa AbstractArray) ? remake(prob; u0 = X) : prob
107107
108108 return MIRKCache {iip, T, use_both, typeof(diffcache)} (
109- alg_order (alg), stage, N, size (X), f, bc, prob_ , prob. problem_type,
109+ alg_order (alg), stage, N, size (X), f, bc, prob , prob. problem_type,
110110 prob. p, alg, TU, ITU, bcresid_prototype, mesh, mesh_dt, k_discrete,
111111 k_interp, y, y₀, residual, fᵢ_cache, fᵢ₂_cache, errors, new_stages,
112112 resid₁_size, (; abstol, dt, adaptive, controller, kwargs... ))
@@ -156,11 +156,11 @@ function SciMLBase.solve!(cache::MIRKCache)
156156end
157157
158158function __perform_mirk_iteration (cache:: MIRKCache , abstol, adaptive:: Bool ,
159- controller; nlsolve_kwargs = (;), kwargs... )
159+ controller:: AbstractErrorControl ; nlsolve_kwargs = (;), kwargs... )
160160 nlprob = __construct_nlproblem (cache, vec (cache. y₀), copy (cache. y₀))
161161 nlsolve_alg = __concrete_nonlinearsolve_algorithm (nlprob, cache. alg. nlsolve)
162162 sol_nlprob = __solve (
163- nlprob, nlsolve_alg; abstol, kwargs... , nlsolve_kwargs... , alias_u0 = true )
163+ nlprob, nlsolve_alg; abstol = abstol , kwargs... , nlsolve_kwargs... , alias_u0 = true )
164164 recursive_unflatten! (cache. y₀, sol_nlprob. u)
165165
166166 error_norm = 2 * abstol
280280 residual, mesh, cache, _, trait:: NoDiffCacheNeeded ) where {BC1, BC2}
281281 y_ = recursive_unflatten! (y, u)
282282 Φ! (residual[2 : end ], cache, y_, u, trait)
283- soly_ = VectorOfArray (y_)
284283 resida = residual[1 ][1 : prod (cache. resid_size[1 ])]
285284 residb = residual[1 ][(prod (cache. resid_size[1 ]) + 1 ): end ]
286- eval_bc_residual! ((resida, residb), pt, bc!, soly_ , p, mesh)
285+ eval_bc_residual! ((resida, residb), pt, bc!, y_ , p, mesh)
287286 recursive_flatten_twopoint! (resid, residual, cache. resid_size)
288287 return nothing
289288end
0 commit comments