From 68fc63e7befc9af7cc229e8344b81e529d2e1751 Mon Sep 17 00:00:00 2001 From: jClugstor Date: Tue, 2 Sep 2025 10:51:47 -0400 Subject: [PATCH] upstream anyeltypedual for FixedSizeDiffCache --- src/SciMLBase.jl | 2 +- src/solve.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SciMLBase.jl b/src/SciMLBase.jl index b0f5afec4..96ec757a2 100644 --- a/src/SciMLBase.jl +++ b/src/SciMLBase.jl @@ -14,7 +14,7 @@ using Distributed using Markdown using Printf import Preferences -using PreallocationTools: get_tmp, DiffCache +using PreallocationTools: get_tmp, DiffCache, FixedSizeDiffCache import Logging, ArrayInterface import IteratorInterfaceExtensions diff --git a/src/solve.jl b/src/solve.jl index c3a9cd4dc..5937da696 100644 --- a/src/solve.jl +++ b/src/solve.jl @@ -462,6 +462,7 @@ end anyeltypedual(x) = anyeltypedual(x, Val{0}) anyeltypedual(x, counter) = Any +anyeltypedual(x::FixedSizeDiffCache, counter = 0) = Any value(x) = x unitfulvalue(x) = x