Skip to content

Commit f14917b

Browse files
fix: don't build initialization for JumpProblem
1 parent 1efb35f commit f14917b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/systems/jumps/jumpsystem.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ function DiffEqBase.DiscreteProblem(sys::JumpSystem, u0map, tspan::Union{Tuple,
416416
end
417417

418418
_f, u0, p = process_SciMLProblem(EmptySciMLFunction, sys, u0map, parammap;
419-
t = tspan === nothing ? nothing : tspan[1], use_union, tofloat = false, check_length = false)
419+
t = tspan === nothing ? nothing : tspan[1], use_union, tofloat = false, check_length = false, build_initializeprob = false)
420420
f = DiffEqBase.DISCRETE_INPLACE_DEFAULT
421421

422422
observedfun = ObservedFunctionCache(
@@ -513,7 +513,8 @@ function DiffEqBase.ODEProblem(sys::JumpSystem, u0map, tspan::Union{Tuple, Nothi
513513
parameter_dependencies = parameter_dependencies(sys),
514514
metadata = get_metadata(sys), gui_metadata = get_gui_metadata(sys))
515515
osys = complete(osys)
516-
return ODEProblem(osys, u0map, tspan, parammap; check_length = false, kwargs...)
516+
return ODEProblem(osys, u0map, tspan, parammap; check_length = false,
517+
build_initializeprob = false, kwargs...)
517518
else
518519
_, u0, p = process_SciMLProblem(EmptySciMLFunction, sys, u0map, parammap;
519520
t = tspan === nothing ? nothing : tspan[1], use_union, tofloat = false,

0 commit comments

Comments
 (0)