Skip to content

Commit 6d04d81

Browse files
Merge pull request #1111 from SciML/ChrisRackauckas-patch-2
Fix SplitODEProblem fallback for non-DiffCache
2 parents 38229fd + 82315c5 commit 6d04d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/problems/ode_problems.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ end
474474
function SplitODEProblem{iip}(f::SplitFunction, u0, tspan, p = NullParameters();
475475
kwargs...) where {iip}
476476
if f._func_cache === nothing && iip
477-
_func_cache = DiffCache(u0)
477+
_func_cache = typeof(u0) <: AbstractArray{<:Number} ? DiffCache(u0) : u0
478478
f = remake(f; _func_cache)
479479
end
480480
ODEProblem(f, u0, tspan, p, SplitODEProblem{iip}(); kwargs...)

0 commit comments

Comments
 (0)