Skip to content

Commit f4add67

Browse files
committed
add dispatch
1 parent d6fdf9d commit f4add67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scimlfunctions.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ For more details on this argument, see the ODEFunction documentation.
21732173
The fields of the ControlFunction type directly match the names of the inputs.
21742174
"""
21752175
struct ControlFunction{iip, specialize, F, TMM, Ta, Tt, TJ, CTJ, JVP, VJP,
2176-
JP, CJP, SP, TW, TWt, WP, TPJ, O, TCV, CTCV,
2176+
JP, CJP, SP, TW, TWt, WP, TPJ, O, TCV,
21772177
SYS, ID} <: AbstractControlFunction{iip}
21782178
f::F
21792179
mass_matrix::TMM
@@ -2595,6 +2595,7 @@ end
25952595
(f::ImplicitDiscreteFunction)(args...) = f.f(args...)
25962596
(f::DAEFunction)(args...) = f.f(args...)
25972597
(f::DDEFunction)(args...) = f.f(args...)
2598+
(f::ControlFunction)(args...) = f.f(args...)
25982599

25992600
function (f::DynamicalDDEFunction)(u, h, p, t)
26002601
ArrayPartition(f.f1(u.x[1], u.x[2], h, p, t), f.f2(u.x[1], u.x[2], h, p, t))

0 commit comments

Comments
 (0)