We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IfLifting
1 parent 994b2db commit 001a9ebCopy full SHA for 001a9eb
test/if_lifting.jl
@@ -21,7 +21,7 @@ using ModelingToolkit: t_nounits as t, D_nounits as D, IfLifting, no_if_lift
21
@test operation(only(equations(ss2)).rhs) === ifelse
22
23
discvar = only(parameters(ss2))
24
- prob2 = ODEProblem(ss2, [x => 0.0], (0.0, 5.0))
+ prob2 = ODEProblem(ss2, [ss2.x => 0.0], (0.0, 5.0))
25
sol2 = solve(prob2, Tsit5())
26
@test count(isapprox(pi), sol2.t) == 2
27
@test any(isapprox(pi), sol2.discretes[1].t)
0 commit comments