Skip to content

Commit

Permalink
Merge pull request #673 from AayushSabharwal/as/fix-rodesol-interpola…
Browse files Browse the repository at this point in the history
…tion

fix: fix symbolic idxs interpolation for RODESolution
  • Loading branch information
ChrisRackauckas authored Apr 17, 2024
2 parents 1624ee4 + d3c0827 commit 0ec4159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/solutions/rode_solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ end

function (sol::RODESolution)(t, ::Type{deriv} = Val{0}; idxs = nothing,
continuity = :left) where {deriv}
sol.interp(t, idxs, deriv, sol.prob.p, continuity)
sol(t, deriv, idxs, continuity)
end
function (sol::RODESolution)(v, t, ::Type{deriv} = Val{0}; idxs = nothing,
continuity = :left) where {deriv}
Expand Down
1 change: 1 addition & 0 deletions test/downstream/solution_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ sol = solve(sprob, ImplicitEM())
@test_throws Exception sol[a]
@test_throws Exception sol[noisy_population_model.a]
@test_throws Exception sol[:a]
@test_nowarn sol(0.5, idxs = noisy_population_model.s1)
### Tests on layered model (some things should not work). ###

@parameters σ ρ β
Expand Down

0 comments on commit 0ec4159

Please sign in to comment.