Skip to content

Commit d1dbfcc

Browse files
committed
Fix tests
1 parent 1893768 commit d1dbfcc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/structural_transformation/symbolics_tearing.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ function tearing_substitution(sys::AbstractSystem; kwargs...)
125125
neweqs = full_equations(sys::AbstractSystem; kwargs...)
126126
@set! sys.eqs = neweqs
127127
@set! sys.substitutions = nothing
128+
@set! sys.schedule = nothing
128129
end
129130

130131
function tearing_assignments(sys::AbstractSystem)

test/initial_values.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ end
116116
@variables x(t)
117117
@parameters p
118118
@mtkbuild sys = ODESystem([D(x) ~ p], t; defaults = [x => t, p => 2t])
119-
prob = ODEProblem(structural_simplify(sys), [], (1.0, 2.0), [])
119+
prob = ODEProblem(sys, [], (1.0, 2.0), [])
120120
@test prob[x] == 1.0
121121
@test prob.ps[p] == 2.0

test/symbolic_events.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,9 @@ continuous_events = [[x ~ 0] => [vx ~ -vx]
353353
D(vx) ~ -9.8
354354
D(vy) ~ -0.01vy], t; continuous_events)
355355

356-
ball = structural_simplify(ball)
357-
ball_nosplit = structural_simplify(ball; split = false)
356+
_ball = ball
357+
ball = structural_simplify(_ball)
358+
ball_nosplit = structural_simplify(_ball; split = false)
358359

359360
tspan = (0.0, 5.0)
360361
prob = ODEProblem(ball, Pair[], tspan)

0 commit comments

Comments
 (0)