I wanted to keep the various integration steps taken by the solver when I named it:
solver1.integrate(t_end)
So, I made a while loop and enabled the step parameter, setting its value to True :
while solver1.successful() and solver1.t < t0+dt: solver1.integrate(t_end,step=True) time.append(solver1.t)
Then I draw y , the result of the integration, and here my problem arises. I have instabilities that appear in the located area:

I thought this was due to a loop or something similar, so I checked the result by removing step :
while solver1.successful() and solver1.t < t0+dt: solver1.integrate(t_end)
And surprise ... I have the correct result:

This is a rather strange situation ... I would be grateful if one of your guys could help me in this matter.
EDIT:
To install the solver, follow these steps:
solver1 = ode(y_dot,jac).set_integrator('vode',with_jacobian=True) solver1.set_initial_value(x0,t0)
And I save the result with .append()
source share