From 7c2e35715720cb429f6bd766f0fd9c0e618acbb7 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sat, 15 Jun 2024 06:14:14 -0400 Subject: [PATCH] Update forwarddiff.jl --- src/forwarddiff.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/forwarddiff.jl b/src/forwarddiff.jl index 52fe08d9f..252246492 100644 --- a/src/forwarddiff.jl +++ b/src/forwarddiff.jl @@ -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