Skip to content

Commit

Permalink
Adjust quadrature test forward a little to avoid numerical issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BenChung committed Dec 9, 2024
1 parent 1c78dee commit aa556d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/symbolic_events.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ end
@named sys = ODESystem(
eqs, t, [theta, omega], params; continuous_events = [qAevt, qBevt])
ss = structural_simplify(sys)
prob = ODEProblem(ss, [theta => 0.0], (0.0, pi))
prob = ODEProblem(ss, [theta => 1e-5], (0.0, pi))
sol = solve(prob, Tsit5(); dtmax = 0.01)
@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
end
Expand Down

0 comments on commit aa556d6

Please sign in to comment.