Skip to content

Commit 0a19c0a

Browse files
fix: don't build initialization for JumpProblem
1 parent 5b66dc3 commit 0a19c0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/jumps/jumpsystem.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ function DiffEqBase.DiscreteProblem(sys::JumpSystem, u0map, tspan::Union{Tuple,
426426
end
427427

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

432432
observedfun = ObservedFunctionCache(
@@ -523,7 +523,7 @@ function DiffEqBase.ODEProblem(sys::JumpSystem, u0map, tspan::Union{Tuple, Nothi
523523
parameter_dependencies = parameter_dependencies(sys),
524524
metadata = get_metadata(sys), gui_metadata = get_gui_metadata(sys))
525525
osys = complete(osys)
526-
return ODEProblem(osys, u0map, tspan, parammap; check_length = false, kwargs...)
526+
return ODEProblem(osys, u0map, tspan, parammap; check_length = false, build_initializeprob = false, kwargs...)
527527
else
528528
_, u0, p = process_SciMLProblem(EmptySciMLFunction, sys, u0map, parammap;
529529
t = tspan === nothing ? nothing : tspan[1], use_union, tofloat = false,

0 commit comments

Comments
 (0)