Skip to content

Commit 59725b1

Browse files
feat: retain information in SplitFunction when adding _func_cache
1 parent af8237c commit 59725b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/problems/ode_problems.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@ function SplitODEProblem{iip}(f::SplitFunction, u0, tspan, p = NullParameters();
475475
kwargs...) where {iip}
476476
if f._func_cache === nothing && iip
477477
_func_cache = similar(u0)
478-
f = SplitFunction{iip}(f.f1, f.f2; mass_matrix = f.mass_matrix,
479-
_func_cache = _func_cache, analytic = f.analytic)
478+
f = remake(f; _func_cache)
480479
end
481480
ODEProblem(f, u0, tspan, p, SplitODEProblem{iip}(); kwargs...)
482481
end

0 commit comments

Comments
 (0)