Luca Gravina

Results 3 comments of Luca Gravina

Indeed `reinit!` serves the purpose but it has one problem that might be an interesting issue. Consider the following simple problem: ``` u0 = 1 tl = LinRange(0,1,1001) tspan =...

I tried solving by using ``` function affect_1!(integrator) integrator.u = sol.u[select(t0, tl)] integrator.t = t0 reinit!(integrator, integrator.u; t0=t0, erase_sol=false) idx = findlast(integrator.sol.t .

This is perfect. Indeed it works. The only problem now is that if one has a PresetTimeCallback this interferes with the reset of the integrator. Specifically, if I take again...