Skip to content

Commit 57ccce8

Browse files
Merge pull request #2541 from AayushSabharwal/as/fix-dde-problem
fix: fix history function in DDEProblem constructor
2 parents 106a675 + 88f15ca commit 57ccce8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,8 @@ function DiffEqBase.DDEProblem{iip}(sys::AbstractODESystem, u0map = [],
11411141
symbolic_u0 = true,
11421142
check_length, kwargs...)
11431143
h_oop, h_iip = generate_history(sys, u0)
1144-
h = h_oop
1144+
h(p, t) = h_oop(p, t)
1145+
h(p::MTKParameters, t) = h_oop(p..., t)
11451146
u0 = h(p, tspan[1])
11461147
cbs = process_events(sys; callback, kwargs...)
11471148
inits = []

0 commit comments

Comments
 (0)