Skip to content

Commit aa556d6

Browse files
committed
Adjust quadrature test forward a little to avoid numerical issues
1 parent 1c78dee commit aa556d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/symbolic_events.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ end
12461246
@named sys = ODESystem(
12471247
eqs, t, [theta, omega], params; continuous_events = [qAevt, qBevt])
12481248
ss = structural_simplify(sys)
1249-
prob = ODEProblem(ss, [theta => 0.0], (0.0, pi))
1249+
prob = ODEProblem(ss, [theta => 1e-5], (0.0, pi))
12501250
sol = solve(prob, Tsit5(); dtmax = 0.01)
12511251
@test getp(sol, cnt)(sol) == 198 # we get 2 pulses per phase cycle (cos 0 crossing) and we go to 100 cycles; we miss a few due to the initial state
12521252
end

0 commit comments

Comments
 (0)