Skip to content

Commit 5c35445

Browse files
committed
get rid of promote_tspan in ForwardDiffExt
1 parent a9154dd commit 5c35445

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

ext/SciMLBaseForwardDiffExt.jl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -375,25 +375,6 @@ function anyeltypedual(::Type{T},
375375
T
376376
end
377377

378-
function promote_tspan(u0::AbstractArray{<:ForwardDiff.Dual}, p, tspan, prob, kwargs)
379-
if (haskey(kwargs, :callback) && has_continuous_callback(kwargs[:callback])) ||
380-
(haskey(prob.kwargs, :callback) && has_continuous_callback(prob.kwargs[:callback]))
381-
return _promote_tspan(eltype(u0).(tspan), kwargs)
382-
else
383-
return _promote_tspan(tspan, kwargs)
384-
end
385-
end
386-
387-
function promote_tspan(u0::AbstractArray{<:Complex{<:ForwardDiff.Dual}}, p, tspan, prob,
388-
kwargs)
389-
return _promote_tspan(real(eltype(u0)).(tspan), kwargs)
390-
end
391-
392-
function promote_tspan(u0::AbstractArray{<:ForwardDiff.Dual}, p,
393-
tspan::Tuple{<:ForwardDiff.Dual, <:ForwardDiff.Dual}, prob, kwargs)
394-
return _promote_tspan(tspan, kwargs)
395-
end
396-
397378
value(x::Type{ForwardDiff.Dual{T, V, N}}) where {T, V, N} = V
398379
value(x::ForwardDiff.Dual) = value(ForwardDiff.value(x))
399380

0 commit comments

Comments
 (0)