Skip to content

Commit 1dd173c

Browse files
Merge pull request #3496 from isaacsas/fix_ode_jumps
Fix ODEProblem over JumpProblem when there are no ODEs
2 parents a7c6f83 + 0ce6ec0 commit 1dd173c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/systems/jumps/jumpsystem.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function DiffEqBase.ODEProblem(sys::JumpSystem, u0map, tspan::Union{Tuple, Nothi
502502
else
503503
_, u0, p = process_SciMLProblem(EmptySciMLFunction, sys, u0map, parammap;
504504
t = tspan === nothing ? nothing : tspan[1], tofloat = false,
505-
check_length = false)
505+
check_length = false, build_initializeprob = false)
506506
f = (du, u, p, t) -> (du .= 0; nothing)
507507
observedfun = ObservedFunctionCache(sys; eval_expression, eval_module,
508508
checkbounds = get(kwargs, :checkbounds, false))

0 commit comments

Comments
 (0)