I am new to Julia. Some workshops from this year’s JuliaCon really impressed me and I started exploring… This might be quite a basic question.
I am trying to implement a callback while solving an ODE problem. I want the callback to be based on a value of the passed parameter which I want to modify in the function itself. This is my function.
function df(du, u, (bool_burst, bp, p), t)
.....
press = #some calculated value
bool_burst = press<bp
.....
end
function condition(u, t, integrator)
@show integrator.p[1]
integrator.p[1]==1
end
function affect!(integrator)
.....
end
In my case, the value of bool_burst
is not changing when I use @show to print the value.
Thanks in advance.