Skip to content

Commit 201b728

Browse files
committed
fix constructor
1 parent d31eafb commit 201b728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/problems/implicit_discrete_problems.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ end
122122

123123
function ConstructionBase.constructorof(::Type{P}) where {P <: ImplicitDiscreteProblem}
124124
function ctor(f, u0, tspan, p, kw)
125-
if f isa AbstractODEFunction
125+
if f isa AbstractDiscreteFunction
126126
iip = isinplace(f)
127127
else
128128
iip = isinplace(f, 5)
129129
end
130-
return ODEProblem{iip}(f, u0, tspan, p; kw...)
130+
return ImplicitDiscreteProblem{iip}(f, u0, tspan, p; kw...)
131131
end
132132
end
133133

0 commit comments

Comments
 (0)