subdivide dt to avoid numerical errors in the integration