Skip to content

Commit 432ace4

Browse files
fix test
1 parent 3bb95d9 commit 432ace4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ext/DiffEqBaseForwardDiffExt.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using DiffEqBase: Void, FunctionWrappersWrappers, OrdinaryDiffEqTag, AbstractTim
66
RecursiveArrayTools, reduce_tup
77
import DiffEqBase: hasdualpromote, wrapfun_oop, wrapfun_iip, prob2dtmin,
88
promote_tspan, anyeltypedual, isdualtype, value, ODE_DEFAULT_NORM,
9-
InternalITP, nextfloat_tdir
9+
InternalITP, nextfloat_tdir, DualEltypeChecker
1010

1111
eltypedual(x) = eltype(x) <: ForwardDiff.Dual
1212
isdualtype(::Type{<:ForwardDiff.Dual}) = true
@@ -165,11 +165,6 @@ end
165165
# For other container types, we probably just want to call `mapreduce`
166166
@inline diffeqmapreduce(f::F, op::OP, x) where {F, OP} = mapreduce(f, op, x, init = Any)
167167

168-
struct DualEltypeChecker{T, T2}
169-
x::T
170-
counter::T2
171-
end
172-
173168
getval(::Val{I}) where {I} = I
174169
getval(::Type{Val{I}}) where {I} = I
175170
getval(I::Int) = I

src/utils.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ end
123123
end
124124
@inline __apply_termination_internalnorm(f::F, u) where {F} = f(u)
125125

126+
struct DualEltypeChecker{T, T2}
127+
x::T
128+
counter::T2
129+
end
130+
126131
anyeltypedual(x) = anyeltypedual(x, Val{0})
127132
anyeltypedual(x, counter) = Any
128133

0 commit comments

Comments
 (0)