Skip to content

Commit b791ad4

Browse files
committed
fix useage of h.
1 parent 4404584 commit b791ad4

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
@@ -1242,7 +1242,9 @@ function DiffEqBase.SDDEProblem{iip}(sys::AbstractODESystem, u0map = [],
12421242
h_oop, h_iip = generate_history(sys, u0)
12431243
h(out, p, t) = h_iip(out, p, t)
12441244
h(p, t) = h_oop(p, t)
1245-
u0 = h(p..., tspan[1])
1245+
h(p::MTKParameters, t) = h_oop(p..., t)
1246+
h(out, p::MTKParameters, t) = h_iip(out, p..., t)
1247+
u0 = h(p, tspan[1])
12461248
cbs = process_events(sys; callback, kwargs...)
12471249
if has_discrete_subsystems(sys) && (dss = get_discrete_subsystems(sys)) !== nothing
12481250
affects, clocks, svs = ModelingToolkit.generate_discrete_affect(sys, dss...)

0 commit comments

Comments
 (0)