Skip to content

Commit a8f0b4c

Browse files
Merge pull request #1115 from SciML/ChrisRackauckas-patch-7
Test fixing
2 parents 70e0de0 + 373ad77 commit a8f0b4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ end
13041304
hasdualpromote(u0, t) = true
13051305

13061306
function promote_f(f::SplitFunction, ::Val{specialize}, u0, p, t) where {specialize}
1307-
typeof(f.cache) === typeof(u0) && isinplace(f) ? f : remake(f, cache = zero(u0))
1307+
typeof(f._func_cache) === typeof(u0) && isinplace(f) ? f : remake(f, _func_cache = zero(u0))
13081308
end
13091309
prepare_alg(alg, u0, p, f) = alg
13101310

test/forwarddiff_dual_detection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ end
383383
# totallength
384384
val = rand(10)
385385
par = rand(10)
386-
u = Dual.(val, par)
386+
u = ForwardDiff.Dual.(val, par)
387387
@test DiffEqBase.totallength(val[1]) == 1
388388
@test DiffEqBase.totallength(val) == length(val)
389389
@test DiffEqBase.totallength(par) == length(par)

0 commit comments

Comments
 (0)