Skip to content

Commit

Permalink
Merge pull request #888 from JuliaReach/schillic/diffeq
Browse files Browse the repository at this point in the history
Fix deprecation warning in OrdinaryDiffEq
  • Loading branch information
schillic authored Jan 9, 2025
2 parents 762beb4 + c5de74a commit 112ea82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Initialization/init_OrdinaryDiffEq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ function _solve_ensemble(ivp::InitialValueProblem{<:AbstractHybridSystem},
condition = (u, t, integrator) -> u I⁻ ? -1 : 1
callback = ODE.ContinuousCallback(condition, termination_action)
end
trajectory = _solve_ensemble(ivp_loc, args...; initial_states=[x0],
callback=callback, tspan=t0 .. T,
kwargs_sim...)[1]
res_ens = _solve_ensemble(ivp_loc, args...; initial_states=[x0],
callback=callback, tspan=t0 .. T, kwargs_sim...)
trajectory = getindex(res_ens, :, 1)

# remove states from trajectory if they violate invariant
# observation: this only concerns the last two steps
Expand Down

0 comments on commit 112ea82

Please sign in to comment.