Skip to content

Commit

Permalink
make sensitivity_solution work with Enzyme
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Feb 4, 2024
1 parent 0c62711 commit 7d9bf90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/solutions/ode_solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,8 @@ function sensitivity_solution(sol::ODESolution, u, t)
end

interp = enable_interpolation_sensitivitymode(sol.interp)

ODESolution{T, N}(u, sol.u_analytic, sol.errors, t,
nothing, sol.prob,
ODESolution{T, N}(u, sol.u_analytic, sol.errors, collect(t),

Check warning on line 402 in src/solutions/ode_solutions.jl

View check run for this annotation

Codecov / codecov/patch

src/solutions/ode_solutions.jl#L402

Added line #L402 was not covered by tests
sol.k, sol.prob,
sol.alg, interp,
sol.dense, sol.tslocation,
sol.stats, sol.alg_choice, sol.retcode)
Expand Down

0 comments on commit 7d9bf90

Please sign in to comment.