Skip to content

Commit 0f35b38

Browse files
StaticArray density fix
1 parent f792d76 commit 0f35b38

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

REQUIRE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Compat 0.17.0
1010
DiffEqNoiseProcess
1111
NLsolve
1212
ForwardDiff
13+
StaticArrays

src/StochasticDiffEq.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module StochasticDiffEq
88

99
using DiffEqBase, Parameters, RecursiveArrayTools, Juno,
1010
DataStructures, Iterators, Roots, DiffEqNoiseProcess,
11-
NLsolve, ForwardDiff
11+
NLsolve, ForwardDiff, StaticArrays
1212

1313
import DiffEqBase: ODE_DEFAULT_NORM, ODE_DEFAULT_ISOUTOFDOMAIN, ODE_DEFAULT_PROG_MESSAGE, ODE_DEFAULT_UNSTABLE_CHECK
1414

src/dense.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ times ts (sorted), with values timeseries and derivatives ks
9797
tvals[idx[1]] < ts[1] && error("Solution interpolation cannot extrapolate before the first timepoint. Either start solving earlier or use the local extrapolation from the integrator interface.")
9898
i = 2 # Start the search thinking it's between ts[1] and ts[2]
9999
if idxs == nothing
100-
if (eltype(timeseries) <: AbstractArray) && !(eltype(timeseries) <: Array)
100+
if (eltype(timeseries) <: AbstractArray) && !(eltype(timeseries) <: Union{StaticArray,Array})
101101
vals = Vector{Vector{eltype(first(timeseries))}}(length(tvals))
102102
else
103103
vals = Vector{eltype(timeseries)}(length(tvals))

0 commit comments

Comments
 (0)