@@ -101,15 +101,15 @@ function instantiate_function(f, cache::ReInitCache, ::SciMLBase.NoAD,
101
101
observed = f. observed)
102
102
end
103
103
104
- function instantiate_function (f, x, adtype:: ADTypes.AbstractADType ,
105
- p, num_cons = 0 )
106
- adtypestr = string (adtype)
107
- _strtind = findfirst (' .' , adtypestr)
108
- strtind = isnothing (_strtind) ? 5 : _strtind + 5
109
- open_nrmlbrkt_ind = findfirst (' (' , adtypestr)
110
- open_squigllybrkt_ind = findfirst (' {' , adtypestr)
111
- open_brkt_ind = isnothing (open_squigllybrkt_ind) ? open_nrmlbrkt_ind :
112
- min (open_nrmlbrkt_ind, open_squigllybrkt_ind)
113
- adpkg = adtypestr[strtind: (open_brkt_ind - 1 )]
114
- throw (ArgumentError (" The passed automatic differentiation backend choice is not available. Please load the corresponding AD package $adpkg ." ))
115
- end
104
+ # function instantiate_function(f, x, adtype::ADTypes.AbstractADType,
105
+ # p, num_cons = 0)
106
+ # adtypestr = string(adtype)
107
+ # _strtind = findfirst('.', adtypestr)
108
+ # strtind = isnothing(_strtind) ? 5 : _strtind + 5
109
+ # open_nrmlbrkt_ind = findfirst('(', adtypestr)
110
+ # open_squigllybrkt_ind = findfirst('{', adtypestr)
111
+ # open_brkt_ind = isnothing(open_squigllybrkt_ind) ? open_nrmlbrkt_ind :
112
+ # min(open_nrmlbrkt_ind, open_squigllybrkt_ind)
113
+ # adpkg = adtypestr[strtind:(open_brkt_ind - 1)]
114
+ # throw(ArgumentError("The passed automatic differentiation backend choice is not available. Please load the corresponding AD package $adpkg."))
115
+ # end
0 commit comments