A preliminary version of the algorithm can be download at here.
The example used in the paper entitled "Stable Adaptive Co-simulation:A Switched Systems Approach", presented at the IUTAM Symposium on Co-simulation and solver coupling, can be downloaded here.