Skip to content

Commit 091e68e

Browse files
test: test correct incidence after simplification
1 parent 1d6d6ca commit 091e68e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/jacobiansparsity.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,10 @@ end
153153
prob = ODEProblem(sys, [x => 1.0, y => 0.0], (0.0, 1.0); jac = true, sparse = true)
154154
sol = solve(prob, FBDF())
155155
@test SciMLBase.successful_retcode(sol)
156+
ts = ModelingToolkit.get_tearing_state(sys)
157+
for ieq in 1:2
158+
vars1 = ts.fullvars[ModelingToolkit.BipartiteGraphs.𝑠neighbors(ts.structure.graph, ieq)]
159+
vars2 = ModelingToolkit.vars(equations(sys)[ieq])
160+
@test issetequal(vars1, vars2)
161+
end
156162
end

0 commit comments

Comments
 (0)