@@ -42,17 +42,21 @@ __compatible(::Number, ::AbstractArray) = false
4242__compatible (u:: AbstractArray , p:: AbstractArray ) = size (u) == size (p)
4343
4444__compatible (u:: Number , :: SciMLBase.AbstractNonlinearAlgorithm ) = true
45- __compatible (u:: Number , :: Union{CMINPACK, NLsolveJL} ) = true
45+ __compatible (u:: Number , :: Union{CMINPACK, NLsolveJL, KINSOL } ) = true
4646__compatible (u:: AbstractArray , :: SciMLBase.AbstractNonlinearAlgorithm ) = true
47+ __compatible (u:: AbstractArray{T, N} , :: KINSOL ) where {T, N} = N == 1 # Need to be fixed upstream
48+ __compatible (u:: StaticArray{S, T, N} , :: KINSOL ) where {S <: Tuple , T, N} = false
4749__compatible (u:: StaticArray , :: SciMLBase.AbstractNonlinearAlgorithm ) = true
48- __compatible (u:: StaticArray , :: Union{CMINPACK, NLsolveJL} ) = false
50+ __compatible (u:: StaticArray , :: Union{CMINPACK, NLsolveJL, KINSOL } ) = false
4951__compatible (u, :: Nothing ) = true
5052
5153__compatible (:: Any , :: Any ) = true
5254__compatible (:: CMINPACK , :: Val{:iip_cache} ) = false
5355__compatible (:: CMINPACK , :: Val{:oop_cache} ) = false
5456__compatible (:: NLsolveJL , :: Val{:iip_cache} ) = false
5557__compatible (:: NLsolveJL , :: Val{:oop_cache} ) = false
58+ __compatible (:: KINSOL , :: Val{:iip_cache} ) = false
59+ __compatible (:: KINSOL , :: Val{:oop_cache} ) = false
5660
5761@testset " ForwardDiff.jl Integration: $(alg) " for alg in (NewtonRaphson (), TrustRegion (),
5862 LevenbergMarquardt (), PseudoTransient (; alpha_initial = 10.0 ), Broyden (), Klement (),
0 commit comments