Skip to content

Commit c7aaaa4

Browse files
Merge pull request #1060 from AayushSabharwal/as/split-ode
feat: retain information in `SplitFunction` when adding `_func_cache`
2 parents d8e202e + 59725b1 commit c7aaaa4

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)