Skip to content

Commit b3b7be6

Browse files
committed
Fix depwarn
1 parent ed51a45 commit b3b7be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/structural_transformation/tearing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ u0 = [mass.s => 0.0
218218
mass.v => 1.0]
219219

220220
sys = structural_simplify(ms_model)
221-
@test sys.jac[] === ModelingToolkit.EMPTY_JAC
222-
@test sys.tgrad[] === ModelingToolkit.EMPTY_TGRAD
221+
@test ModelingToolkit.get_jac(sys)[] === ModelingToolkit.EMPTY_JAC
222+
@test ModelingToolkit.get_tgrad(sys)[] === ModelingToolkit.EMPTY_TGRAD
223223
prob_complex = ODAEProblem(sys, u0, (0, 1.0))
224224
sol = solve(prob_complex, Tsit5())
225225
@test all(sol[mass.v] .== 1)

0 commit comments

Comments
 (0)