Skip to content

Commit

Permalink
remove extra type parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
prbzrg committed Jan 24, 2025
1 parent 013c00d commit ba32995
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/OrdinaryDiffEqCore/src/alg_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ _get_fwd_chunksize(::Type{AutoForwardDiff{CS, T}}) where {CS, T} = Val(CS)
_get_fwd_chunksize_int(::Type{AutoForwardDiff{CS, T}}) where {CS, T} = CS
_get_fwd_chunksize(AD) = Val(0)
_get_fwd_chunksize_int(AD) = 0
_get_fwd_tag(::AutoForwardDiff{CS,T}) where {CS,T} = T

_get_fdtype(::AutoFiniteDiff{T1, T2, T3}) where {T1, T2, T3} = T1
_get_fdtype(::Type{AutoFiniteDiff{T1,T2,T3}}) where {T1, T2, T3} = T1
_get_fwd_tag(::AutoForwardDiff{CS, T}) where {CS, T} = T

_get_fdtype(::AutoFiniteDiff{T1}) where {T1} = T1
_get_fdtype(::Type{<:AutoFiniteDiff{T1}}) where {T1} = T1

function get_chunksize(alg::Union{OrdinaryDiffEqExponentialAlgorithm{CS, AD},
OrdinaryDiffEqAdaptiveExponentialAlgorithm{CS, AD},
Expand Down Expand Up @@ -237,8 +236,6 @@ function get_current_alg_autodiff(alg::CompositeAlgorithm, cache)
_eval_index(alg_autodiff, alg.algs, cache.current)::Bool
end



function alg_difftype(alg::Union{
OrdinaryDiffEqAdaptiveImplicitAlgorithm{CS, AD, FDT, ST, CJ
},
Expand Down

0 comments on commit ba32995

Please sign in to comment.