Skip to content

Commit

Permalink
Update lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
ChrisRackauckas and github-actions[bot] authored Nov 15, 2024
1 parent 1fb625e commit 585f55c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ function CommonSolve.solve(prob::SciMLBase.SCCNonlinearProblem, alg; kwargs...)
if !SciMLBase.successful_retcode(_sol)
break
end
end
# TODO: fix allocations with a lazy concatenation
u .= reduce(vcat,sols)
resid .= reduce(vcat,getproperty.(sols,:resid))
end

# TODO: fix allocations with a lazy concatenation
u .= reduce(vcat, sols)
resid .= reduce(vcat, getproperty.(sols, :resid))

retcode = sols[lasti].retcode

Expand Down

0 comments on commit 585f55c

Please sign in to comment.