Skip to content

Commit 0ec4159

Browse files
Merge pull request #673 from AayushSabharwal/as/fix-rodesol-interpolation
fix: fix symbolic idxs interpolation for RODESolution
2 parents 1624ee4 + d3c0827 commit 0ec4159

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/solutions/rode_solutions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ end
6363

6464
function (sol::RODESolution)(t, ::Type{deriv} = Val{0}; idxs = nothing,
6565
continuity = :left) where {deriv}
66-
sol.interp(t, idxs, deriv, sol.prob.p, continuity)
66+
sol(t, deriv, idxs, continuity)
6767
end
6868
function (sol::RODESolution)(v, t, ::Type{deriv} = Val{0}; idxs = nothing,
6969
continuity = :left) where {deriv}

test/downstream/solution_interface.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ sol = solve(sprob, ImplicitEM())
6262
@test_throws Exception sol[a]
6363
@test_throws Exception sol[noisy_population_model.a]
6464
@test_throws Exception sol[:a]
65+
@test_nowarn sol(0.5, idxs = noisy_population_model.s1)
6566
### Tests on layered model (some things should not work). ###
6667

6768
@parameters σ ρ β

0 commit comments

Comments
 (0)