Skip to content

Commit

Permalink
Merge pull request #1115 from SciML/ChrisRackauckas-patch-7
Browse files Browse the repository at this point in the history
Test fixing
  • Loading branch information
ChrisRackauckas authored Feb 13, 2025
2 parents 70e0de0 + 373ad77 commit a8f0b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/forwarddiff_dual_detection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8f0b4c

Please sign in to comment.