Skip to content

Commit e2fb2cf

Browse files
committed
ftest: fix discrete parameter in test
1 parent c1978a5 commit e2fb2cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/symbolic_events.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,10 +874,9 @@ end
874874

875875
# Test Simulation
876876
@mtkcompile sys = TestSystem()
877-
878-
# Test Simulation
879877
prob = ODEProblem(sys, [], (0.0, 150.0))
880878
sol = solve(prob)
879+
881880
# This is singular at the second event, but the derivatives are zero so it's
882881
# constant after that point anyway. Just make sure it hits the last event and
883882
# had the correct `u`.
@@ -1374,7 +1373,7 @@ end
13741373
@parameters p2(t) = 1.0
13751374
@variables x(t) = 0.0
13761375
@variables x2(t)
1377-
event = [0.5] => [p2 ~ Pre(t)]
1376+
event = SymbolicDiscreteCallback([0.5] => [p2 ~ Pre(t)], discrete_parameters = p2)
13781377

13791378
eq = [
13801379
D(x) ~ p2,

0 commit comments

Comments
 (0)