diff --git a/src/solutions/ode_solutions.jl b/src/solutions/ode_solutions.jl index 8746de166..199c558ad 100644 --- a/src/solutions/ode_solutions.jl +++ b/src/solutions/ode_solutions.jl @@ -399,7 +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, collect(t), + ODESolution{T, N}(u, sol.u_analytic, sol.errors, + t isa Vector ? t : collect(t), sol.k, sol.prob, sol.alg, interp, sol.dense, sol.tslocation,