Skip to content

Commit

Permalink
Merge pull request #2275 from oscardssmith/os/fix-default-interp
Browse files Browse the repository at this point in the history
fix default algorithm interpolation
  • Loading branch information
ChrisRackauckas authored Jul 5, 2024
2 parents 6c0bce5 + 84b1b71 commit b03a2a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dense/generic_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ function ode_interpolation!(vals, tvals, id::I, idxs, deriv::D, p,
if cache isa CompositeCache
current_alg = id.alg_choice[i₊]
cache_i₊ = cache.caches[current_alg]
elseif cache isa DefaultCache
current_alg = id.alg_choice[i₊]
else
cache_i₊ = cache
end
Expand Down
2 changes: 2 additions & 0 deletions test/interface/default_solver_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ tsitsol = solve(prob_ode_2Dlinear, Tsit5())
@test sol.stats.nf == tsitsol.stats.nf
@test all(isequal(1), sol.alg_choice)
@test sol(0.5) == only(sol([0.5]).u) == tsitsol(0.5)
x = [zeros(4,2) for _ in 1:5]
@test sol(x, 0:.1:.4) == tsitsol(x, 0:.1:.4)

sol = solve(prob_ode_2Dlinear, reltol = 1e-10)
vernsol = solve(prob_ode_2Dlinear, Vern7(), reltol = 1e-10)
Expand Down

0 comments on commit b03a2a3

Please sign in to comment.