Skip to content

Commit 4e76d51

Browse files
Merge pull request #937 from vyudu/idp
fix: ImplicitDiscreteFunction IIP has 5 arguments not 6
2 parents 5417dc6 + 6f1a1d8 commit 4e76d51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/problems/implicit_discrete_problems.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct ImplicitDiscreteProblem{uType, tType, isinplace, P, F, K} <:
8989
_u0 = prepare_initial_state(u0)
9090
_tspan = promote_tspan(tspan)
9191
warn_paramtype(p)
92-
new{typeof(_u0), typeof(_tspan), isinplace(f, 6),
92+
new{typeof(_u0), typeof(_tspan), isinplace(f, 5),
9393
typeof(p),
9494
typeof(f), typeof(kwargs)}(f,
9595
_u0,
@@ -111,12 +111,12 @@ Defines a discrete problem with the specified functions.
111111
"""
112112
function ImplicitDiscreteProblem(f::ImplicitDiscreteFunction, u0, tspan::Tuple,
113113
p = NullParameters(); kwargs...)
114-
ImplicitDiscreteProblem{isinplace(f, 6)}(f, u0, tspan, p; kwargs...)
114+
ImplicitDiscreteProblem{isinplace(f, 5)}(f, u0, tspan, p; kwargs...)
115115
end
116116

117117
function ImplicitDiscreteProblem(f, u0, tspan, p = NullParameters();
118118
kwargs...)
119-
iip = isinplace(f, 6)
119+
iip = isinplace(f, 5)
120120
ImplicitDiscreteProblem(ImplicitDiscreteFunction{iip}(f), u0, tspan, p; kwargs...)
121121
end
122122

0 commit comments

Comments
 (0)