Skip to content

Commit 994891c

Browse files
Merge pull request #136 from nathanaelbosch/patch-1
Fix another deprecationwarning in `appxtrue(, ::TestSolution)`
2 parents 0ae7b4f + 6e658f0 commit 994891c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test_solution.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ calculated.
4141
"""
4242
function appxtrue(sol::AbstractODESolution, sol2::TestSolution)
4343
if sol2.u == nothing && hasinterp(sol2)
44-
_sol = TestSolution(sol.t, sol2(sol.t), sol2)
44+
_sol = TestSolution(sol.t, sol2(sol.t).u, sol2)
4545
else
4646
_sol = sol2
4747
end

test/ode_appxtrue_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ test_sol = TestSolution(sol2)
1818
errsol2 = appxtrue(sol4, test_sol)
1919

2020
sol5 = solve(prob, Euler(); dt = 1 // 2^(4))
21-
test_sol = TestSolution(sol2.t, sol2[end])
21+
test_sol = TestSolution(sol2.t, sol2.u[end])
2222
errsol3 = appxtrue(sol5, test_sol)
2323

2424
@test errsol1.errors[:L2] 0.018865798306718855

0 commit comments

Comments
 (0)