Skip to content

Commit 7f21b85

Browse files
update
1 parent 75a733f commit 7f21b85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simple_regular_solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ function DiffEqBase.solve(jump_prob::JumpProblem, alg::SimpleAdaptiveTauLeaping;
101101
seed = nothing,
102102
dtmin = 1e-10,
103103
saveat = nothing)
104-
@assert isempty(jump_prob.jump_callback.continuous_callbacks)
105-
@assert isempty(jump_prob.jump_callback.discrete_callbacks)
104+
validate_pure_leaping_inputs(jump_prob, alg) ||
105+
error("SimpleTauLeaping can only be used with PureLeaping JumpProblems with only non-RegularJumps.")
106106
prob = jump_prob.prob
107107
rng = DEFAULT_RNG
108108
(seed !== nothing) && seed!(rng, seed)

0 commit comments

Comments
 (0)