Skip to content

Commit 3fc8038

Browse files
Merge pull request #1123 from jClugstor/preallocation_anyeltypedual
Upstream `anyeltypedual` for `FixedSizeDiffCache`
2 parents b1bfd1e + 68fc63e commit 3fc8038

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/SciMLBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ using Distributed
1414
using Markdown
1515
using Printf
1616
import Preferences
17-
using PreallocationTools: get_tmp, DiffCache
17+
using PreallocationTools: get_tmp, DiffCache, FixedSizeDiffCache
1818

1919
import Logging, ArrayInterface
2020
import IteratorInterfaceExtensions

src/solve.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ end
462462

463463
anyeltypedual(x) = anyeltypedual(x, Val{0})
464464
anyeltypedual(x, counter) = Any
465+
anyeltypedual(x::FixedSizeDiffCache, counter = 0) = Any
465466

466467
value(x) = x
467468
unitfulvalue(x) = x

0 commit comments

Comments
 (0)