Skip to content

Commit 38c2906

Browse files
fix: reorder system in SCCNonlinearProblem
1 parent 5910eb5 commit 38c2906

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/systems/nonlinear/nonlinearsystem.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,10 @@ function SciMLBase.SCCNonlinearProblem{iip}(sys::NonlinearSystem, u0map,
698698
push!(subprobs, prob)
699699
end
700700

701+
new_dvs = dvs[reduce(vcat, var_sccs)]
702+
new_eqs = eqs[reduce(vcat, eq_sccs)]
703+
@set! sys.unknowns = new_dvs
704+
@set! sys.eqs = new_eqs
701705
return SCCNonlinearProblem(subprobs, explicitfuns, sys, p)
702706
end
703707

0 commit comments

Comments
 (0)