Skip to content

Commit 154096a

Browse files
committed
Test dummy derivative
1 parent 916c71b commit 154096a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/structural_transformation/index_reduction.jl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,22 @@ let pss_pendulum = partial_state_selection(pendulum)
131131
# This currently selects `T` rather than `x` at top level. Needs tearing priorities to fix.
132132
@test_broken length(equations(pss_pendulum)) == 3
133133
end
134+
135+
sys = structural_simplify(pendulum2)
136+
@test length(equations(sys)) == 5
137+
@test length(states(sys)) == 5
138+
139+
u0 = [
140+
D(x) => 0.0,
141+
D(y) => 0.0,
142+
x => sqrt(2)/2,
143+
y => sqrt(2)/2,
144+
T => 0.0
145+
]
146+
p = [
147+
L => 1.0,
148+
g => 9.8
149+
]
150+
151+
prob_auto = DAEProblem(sys,zeros(length(u0)),u0,(0.0,10.0),p)
152+
@test_nowarn solve(prob_auto, DFBDF())

0 commit comments

Comments
 (0)