Skip to content

Commit a6c5c6c

Browse files
committed
typos
1 parent 922800b commit a6c5c6c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/systems/jumps/jumpsystem.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,8 @@ function DiffEqBase.DiscreteProblem(sys::JumpSystem, u0map, tspan::Union{Tuple,
398398
error("A completed `JumpSystem` is required. Call `complete` or `structural_simplify` on the system before creating a `DiscreteProblem`")
399399
end
400400

401-
if has_equations(sys)
402-
error("The passed in JumpSystem contains `Equations`, please use a problem type that supports equations such as such as ODEProblem.")
403-
end
404-
405-
if !isempty(continuous_events(sys))
406-
error("The passed in JumpSystem contains `ContinuousEvents`, please use a problem type that supports continuous events such as such as ODEProblem.")
401+
if has_equations(sys) || (!isempty(continuous_events(sys)))
402+
error("The passed in JumpSystem contains `Equation`s or continuous events, please use a problem type that supports these features, such as ODEProblem.")
407403
end
408404

409405
_, u0, p = process_SciMLProblem(EmptySciMLFunction, sys, u0map, parammap;

0 commit comments

Comments
 (0)