Skip to content

Commit 777b85a

Browse files
Update lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl
Co-authored-by: Aayush Sabharwal <[email protected]>
1 parent 3fbb0f8 commit 777b85a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/SCCNonlinearSolve/src/SCCNonlinearSolve.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
module SCCNonlinearSolve
22

33
import SciMLBase
4+
import CommonSolve
45

5-
function SciMLBase.solve(prob::SciMLBase.SCCNonlinearProblem, alg; kwargs...)
6+
function CommonSolve.solve(prob::SciMLBase.SCCNonlinearProblem, alg; kwargs...)
67
numscc = length(prob.probs)
78
sols = [SciMLBase.build_solution(prob, nothing, prob.u0, convert(eltype(prob.u0),NaN)*prob.u0) for prob in prob.probs]
89
u = reduce(vcat,[prob.u0 for prob in prob.probs])

0 commit comments

Comments
 (0)