From 29909d1cf229ac7e71735ed9716d3001b00d5951 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Fri, 15 Nov 2024 08:49:51 -0100 Subject: [PATCH] Update lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl b/lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl index a1c9c6e96..1b63167ce 100644 --- a/lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl +++ b/lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl @@ -4,10 +4,12 @@ import SciMLBase import CommonSolve function CommonSolve.solve(prob::SciMLBase.SCCNonlinearProblem, alg; kwargs...) - numscc = length(prob.probs) - sols = [SciMLBase.build_solution(prob, nothing, prob.u0, convert(eltype(prob.u0),NaN)*prob.u0) for prob in prob.probs] - u = reduce(vcat,[prob.u0 for prob in prob.probs]) - resid = copy(u) + numscc = length(prob.probs) + sols = [SciMLBase.build_solution( + prob, nothing, prob.u0, convert(eltype(prob.u0), NaN) * prob.u0) + for prob in prob.probs] + u = reduce(vcat, [prob.u0 for prob in prob.probs]) + resid = copy(u) lasti = 1 for i in 1:numscc