From f0fd61e7d026158c6bd57b4fe073c6df85d666e6 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 12 Feb 2025 17:13:34 -0800 Subject: [PATCH 1/2] Test fixing --- src/solve.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 373ad77adb9bb401b66cc2242c561830f5ce97a0 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 13 Feb 2025 05:38:17 -0800 Subject: [PATCH 2/2] namespace --- test/forwarddiff_dual_detection.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)