Skip to content

Commit a422bb1

Browse files
Comment out error throwing dispatch
1 parent 8d89343 commit a422bb1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/function.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ function instantiate_function(f, cache::ReInitCache, ::SciMLBase.NoAD,
101101
observed = f.observed)
102102
end
103103

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

Comments
 (0)