Supplement 1. Source code for simulations described in our paper.

File List



The program underwood_et_al_code.c simulates the movement of herbivores and plant responses to herbivores on a linear array of plants, and records the location of herbivores and status of the plants.  Options within the code allow for changing the initial distribution of herbivores among plants.  All variables and options are explained by comments within the code, immediately following their first usage.