Let's suppose the example 1 of the bouncing ball with multiple walls in the page:
https://diffeq.sciml.ai/stable/features/callback_functions/
And consider the condition:
function condition(out,u,t,integrator) # Event when event_f(u,t) == 0
out[1] = u[1]
out[2] = (u[3] - 10.0)u[3]
end
But, suppose I want the value "10.0" as a parameter (e.g., "h"). Is there way to write like the following?
function condition(out,u,t,integrator) # Event when event_f(u,t) == 0
out[1] = u[1]
out[2] = (u[3] - h)u[3]
end