Skip to content

Commit 3d9c074

Browse files
Merge pull request #767 from jClugstor/solution_strip_fix
fix solution strip typo
2 parents 926af66 + 2756878 commit 3d9c074

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/solutions/ode_solutions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,6 @@ function strip_solution(sol::ODESolution)
615615

616616
ODESolution(sol.u, sol.u_analytic, sol.errors,
617617
sol.t, sol.k, sol.discretes, nothing, nothing,
618-
sol.interp, sol.dense, sol.tslocation, sol.stats,
618+
interp, sol.dense, sol.tslocation, sol.stats,
619619
sol.alg_choice, sol.retcode, sol.resid, sol.original)
620620
end

test/downstream/ode_stripping.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ tspan = (0.0, 1.0)
55
prob = ODEProblem(f, u0, tspan)
66
sol = solve(prob, Tsit5(), reltol = 1e-8, abstol = 1e-8)
77

8-
@test isnothing(strip_solution(sol).f)
8+
@test isnothing(strip_solution(sol).f)
9+
10+
@test isnothing(strip_solution(sol).interp.f)

0 commit comments

Comments
 (0)