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