Resumen: In this article, an adaptive Runge-Kutta code, based on the DOPRI5(4) pair for solving initial value problems (IVPs) for differential systems with piecewise smooth solutions (PWS) is presented and the algorithms used in the code are described. The code automatically detects and locates accurately the switching points of the PWS, restarting the integration after each discontinuity. Further, in the case of Filippov systems, algorithms to handle properly sliding mode regimes in an automatic way are included. The code requires the user to provide a description of the IVP and the functions defining the hypersurfaces where the switching points are located, and it returns the discrete approximated solution together with the switching points. Several numerical experiments are presented to illustrate the reliability and efficiency of the code. Idioma: Inglés DOI: 10.1145/2907054 Año: 2016 Publicado en: ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE 43, 3 (2016), 25 [14 pp.] ISSN: 0098-3500 Factor impacto JCR: 3.275 (2016) Categ. JCR: MATHEMATICS, APPLIED rank: 5 / 255 = 0.02 (2016) - Q1 - T1 Categ. JCR: COMPUTER SCIENCE, SOFTWARE ENGINEERING rank: 7 / 106 = 0.066 (2016) - Q1 - T1 Factor impacto SCIMAGO: 1.532 - Software (Q1) - Applied Mathematics (Q1)