Skip to content

Commit f800474

Browse files
committed
fix useage of h.
1 parent 912663e commit f800474

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,9 @@ function DiffEqBase.SDDEProblem{iip}(sys::AbstractODESystem, u0map = [],
12051205
h_oop, h_iip = generate_history(sys, u0)
12061206
h(out, p, t) = h_iip(out, p, t)
12071207
h(p, t) = h_oop(p, t)
1208-
u0 = h(p..., tspan[1])
1208+
h(p::MTKParameters, t) = h_oop(p..., t)
1209+
h(out, p::MTKParameters, t) = h_iip(out, p..., t)
1210+
u0 = h(p, tspan[1])
12091211
cbs = process_events(sys; callback, kwargs...)
12101212
inits = []
12111213
if has_discrete_subsystems(sys) && (dss = get_discrete_subsystems(sys)) !== nothing

0 commit comments

Comments
 (0)