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

<h2>File List</h2><blockquote> <p><a href="underwood_et_al_code.c">underwood_et_al_code.c</a><br> </p> </blockquote><h2>Description</h2><blockquote> <p>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.</p> <p> </p></blockquote>