Skip to content

Commit

Permalink
Update forwarddiff.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas authored Jun 15, 2024
1 parent af20942 commit 7c2e357
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/forwarddiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ function anyeltypedual(sol::RecursiveArrayTools.AbstractDiffEqArray, counter = 0
end

function anyeltypedual(prob::Union{ODEProblem, SDEProblem, RODEProblem, DDEProblem},
::Type{Val{counter}} = Val{0}) where {counter} where {N, T <: NTuple{N, <:Number}}
::Type{Val{counter}} = Val{0}) where {counter}
anyeltypedual((prob.u0, prob.p, prob.tspan))
end

function anyeltypedual(
prob::Union{NonlinearProblem, NonlinearLeastSquaresProblem, OptimizationProblem},
::Type{Val{counter}} = Val{0}) where {counter} where {N, T <: NTuple{N, <:Number}}
::Type{Val{counter}} = Val{0}) where {counter}
anyeltypedual((prob.u0, prob.p))
end

Expand Down

0 comments on commit 7c2e357

Please sign in to comment.