Skip to content

Commit cbcffe6

Browse files
committed
use set and reset instead
1 parent 6528ec1 commit cbcffe6

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/solutions/ode_solutions.jl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,7 @@ function strip_solution(sol::ODESolution)
613613

614614
interp = strip_interpolation(sol.interp)
615615

616-
bigT = typeof(sol).parameters[1]
617-
bigN = typeof(sol).parameters[2]
618-
ODESolution{bigT,bigN}(sol.u, sol.u_analytic, sol.errors,
619-
sol.t, sol.k, sol.discretes, nothing, nothing,
620-
interp, sol.dense, sol.tslocation, sol.stats,
621-
sol.alg_choice, sol.retcode, sol.resid, sol.original)
616+
@reset sol.interp = interp
617+
@reset sol.prob = nothing
618+
return @set sol.alg = nothing
622619
end

0 commit comments

Comments
 (0)