Skip to content

Commit 29909d1

Browse files
Update lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 726ca92 commit 29909d1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import SciMLBase
44
import CommonSolve
55

66
function CommonSolve.solve(prob::SciMLBase.SCCNonlinearProblem, alg; kwargs...)
7-
numscc = length(prob.probs)
8-
sols = [SciMLBase.build_solution(prob, nothing, prob.u0, convert(eltype(prob.u0),NaN)*prob.u0) for prob in prob.probs]
9-
u = reduce(vcat,[prob.u0 for prob in prob.probs])
10-
resid = copy(u)
7+
numscc = length(prob.probs)
8+
sols = [SciMLBase.build_solution(
9+
prob, nothing, prob.u0, convert(eltype(prob.u0), NaN) * prob.u0)
10+
for prob in prob.probs]
11+
u = reduce(vcat, [prob.u0 for prob in prob.probs])
12+
resid = copy(u)
1113

1214
lasti = 1
1315
for i in 1:numscc

0 commit comments

Comments
 (0)