Skip to content

Commit 6f04ca9

Browse files
committed
Remove u_modified! entirely
1 parent 5734192 commit 6f04ca9

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

src/SSA_stepper.jl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,10 @@ function Base.propertynames(integrator::SSAIntegrator, private::Bool = false)
136136
return (fieldnames(SSAIntegrator)..., :derivative_discontinuity)
137137
end
138138

139-
function DiffEqBase.u_modified!(integrator::SSAIntegrator, bool::Bool)
139+
function SciMLBase.derivative_discontinuity!(integrator::SSAIntegrator, bool::Bool)
140140
integrator.u_modified = bool
141141
end
142142

143-
# SciMLBase v3 renamed `u_modified!` to `derivative_discontinuity!` and internal
144-
# callback code now calls the new name. Define the method when available so
145-
# callbacks keep working on v3. Guarded so the file still loads on v2.
146-
@static if isdefined(SciMLBase, :derivative_discontinuity!)
147-
function SciMLBase.derivative_discontinuity!(integrator::SSAIntegrator, bool::Bool)
148-
integrator.u_modified = bool
149-
end
150-
end
151-
152143
function DiffEqBase.__solve(jump_prob::JumpProblem, alg::SSAStepper; kwargs...)
153144
# init will handle kwargs merging via init_call
154145
integrator = init(jump_prob, alg; kwargs...)

0 commit comments

Comments
 (0)