Reset GSL integration at discontinuous changes