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 726ca92 commit 29909d1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29909d1

Please sign in to comment.