Code for the paper Brummitt, C. D., Barnett, G., & D'Souza, R. M. (2015). Coupled catastrophes: sudden shifts cascade and hop among interdependent systems. Journal of the Royal Society Interface, 12(112), 20150712. http://doi.org/10.1098/rsif.2015.0712