Correcting integration that has discontinuities

If the input function to an integrator block contains discontinuities, use the adaptive Runge Kutta 5th order or adaptive Bulirsh-Stoer integration algorithm.