Skip to content

Commit

Permalink
fix saveidxs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 5, 2018
1 parent 6742e25 commit 36bacb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dense/generic_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ function ode_interpolant(Θ,dt,y₀,y₁,k,cache,idxs,T::Type{Val{TI}}) where TI
end

function ode_interpolant(Θ,dt,y₀,y₁,k,cache::OrdinaryDiffEqMutableCache,idxs,T::Type{Val{TI}}) where TI
if typeof(idxs) <: Number
if typeof(idxs) <: Number || typeof(y₀) <: Union{Number,SArray}
# typeof(y₀) can be these if saveidxs gives a single value
_ode_interpolant(Θ,dt,y₀,y₁,k,cache,idxs,T)
else
# determine output type
Expand Down

0 comments on commit 36bacb4

Please sign in to comment.