Skip to content

Commit 58e1cd4

Browse files
Merge pull request #1188 from thomvet/fix-ordinarydiffeq-2719
do not replace LazyBufferCache when promoting f
2 parents e323c14 + 3fb7510 commit 58e1cd4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/solve.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,10 +1420,7 @@ end
14201420

14211421
hasdualpromote(u0, t) = true
14221422

1423-
function promote_f(f::SplitFunction, ::Val{specialize}, u0, p, t) where {specialize}
1424-
typeof(f._func_cache) === typeof(u0) && isinplace(f) ? f :
1425-
remake(f, _func_cache = zero(u0))
1426-
end
1423+
promote_f(f::SplitFunction, ::Val{specialize}, u0, p, t) where {specialize} = f
14271424
prepare_alg(alg, u0, p, f) = alg
14281425

14291426
function get_concrete_tspan(prob, isadapt, kwargs, p)

0 commit comments

Comments
 (0)