Skip to content

Commit 8119fa8

Browse files
committed
fix: fix ControlFunction constructors
1 parent 446dc07 commit 8119fa8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/scimlfunctions.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4833,12 +4833,12 @@ function ControlFunction{iip, specialize}(f;
48334833
end
48344834
end
48354835

4836-
function ODEFunction{iip}(f; kwargs...) where {iip}
4837-
ODEFunction{iip, FullSpecialize}(f; kwargs...)
4836+
function ControlFunction{iip}(f; kwargs...) where {iip}
4837+
ControlFunction{iip, FullSpecialize}(f; kwargs...)
48384838
end
4839-
ODEFunction{iip}(f::ODEFunction; kwargs...) where {iip} = f
4840-
ODEFunction(f; kwargs...) = ODEFunction{isinplace(f, 4), FullSpecialize}(f; kwargs...)
4841-
ODEFunction(f::ODEFunction; kwargs...) = f
4839+
ControlFunction{iip}(f::ControlFunction; kwargs...) where {iip} = f
4840+
ControlFunction(f; kwargs...) = ControlFunction{isinplace(f, 5), FullSpecialize}(f; kwargs...)
4841+
ControlFunction(f::ControlFunction; kwargs...) = f
48424842

48434843
########## Utility functions
48444844

0 commit comments

Comments
 (0)