@@ -49,8 +49,8 @@ function JacFunctionWrapper(f::F, fu_, u, p, t;
49
49
if deporder
50
50
# Check this first else we were breaking things
51
51
# In the next breaking release, we will fix the ordering of the checks
52
- iip = static_hasmethod (f, typeof ((fu, u)))
53
- oop = static_hasmethod (f, typeof ((u,)))
52
+ iip = hasmethod (f, typeof ((fu, u)))
53
+ oop = hasmethod (f, typeof ((u,)))
54
54
if iip || oop
55
55
if p != = nothing || t != = nothing
56
56
Base. depwarn (
@@ -74,17 +74,17 @@ function JacFunctionWrapper(f::F, fu_, u, p, t;
74
74
end
75
75
76
76
if t != = nothing
77
- iip = static_hasmethod (f, typeof ((fu, u, p, t)))
78
- oop = static_hasmethod (f, typeof ((u, p, t)))
77
+ iip = hasmethod (f, typeof ((fu, u, p, t)))
78
+ oop = hasmethod (f, typeof ((u, p, t)))
79
79
if ! iip && ! oop
80
80
throw (ArgumentError (""" `p` and `t` provided but `f(u, p, t)` or `f(fu, u, p, t)`
81
81
not defined for `f`!""" ))
82
82
end
83
83
return JacFunctionWrapper {iip, oop, 1, F, typeof(fu), typeof(p), typeof(t)} (f,
84
84
fu, p, t)
85
85
elseif p != = nothing
86
- iip = static_hasmethod (f, typeof ((fu, u, p)))
87
- oop = static_hasmethod (f, typeof ((u, p)))
86
+ iip = hasmethod (f, typeof ((fu, u, p)))
87
+ oop = hasmethod (f, typeof ((u, p)))
88
88
if ! iip && ! oop
89
89
throw (ArgumentError (""" `p` is provided but `f(u, p)` or `f(fu, u, p)`
90
90
not defined for `f`!""" ))
@@ -94,8 +94,8 @@ function JacFunctionWrapper(f::F, fu_, u, p, t;
94
94
end
95
95
96
96
if ! deporder
97
- iip = static_hasmethod (f, typeof ((fu, u)))
98
- oop = static_hasmethod (f, typeof ((u,)))
97
+ iip = hasmethod (f, typeof ((fu, u)))
98
+ oop = hasmethod (f, typeof ((u,)))
99
99
if ! iip && ! oop
100
100
throw (ArgumentError (""" `p` is provided but `f(u)` or `f(fu, u)` not defined for
101
101
`f`!""" ))
0 commit comments