Skip to content

Commit

Permalink
fix: reorder system in SCCNonlinearProblem
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 1, 2024
1 parent 79cf520 commit 03133a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/systems/nonlinear/nonlinearsystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,11 @@ function SciMLBase.SCCNonlinearProblem{iip}(sys::NonlinearSystem, u0map,
push!(subprobs, prob)
end

new_dvs = dvs[reduce(vcat, var_sccs)]
new_eqs = eqs[reduce(vcat, eq_sccs)]
@set! sys.unknowns = new_dvs
@set! sys.eqs = new_eqs
sys = complete(sys)
return SCCNonlinearProblem(subprobs, explicitfuns, sys, p)
end

Expand Down

0 comments on commit 03133a0

Please sign in to comment.