Support for ODEs on multiple intervals