diff --git a/src/solve.jl b/src/solve.jl index 787ad68c2..722442696 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -1304,7 +1304,7 @@ end hasdualpromote(u0, t) = true function promote_f(f::SplitFunction, ::Val{specialize}, u0, p, t) where {specialize} - typeof(f.cache) === typeof(u0) && isinplace(f) ? f : remake(f, cache = zero(u0)) + typeof(f._func_cache) === typeof(u0) && isinplace(f) ? f : remake(f, _func_cache = zero(u0)) end prepare_alg(alg, u0, p, f) = alg diff --git a/test/forwarddiff_dual_detection.jl b/test/forwarddiff_dual_detection.jl index 1fc50fefd..009ee6f2a 100644 --- a/test/forwarddiff_dual_detection.jl +++ b/test/forwarddiff_dual_detection.jl @@ -383,7 +383,7 @@ end # totallength val = rand(10) par = rand(10) -u = Dual.(val, par) +u = ForwardDiff.Dual.(val, par) @test DiffEqBase.totallength(val[1]) == 1 @test DiffEqBase.totallength(val) == length(val) @test DiffEqBase.totallength(par) == length(par)