Supplement 1. The two C codes, metacommunity.c and localcommunity.c, mentioned in the paper used in the simulation of metacommunities and local communities.

2016-08-05T01:07:57Z (GMT) by Stephen P. Hubbell Luís Borda-de-Água
<h2>File List</h2><blockquote> <p><a href="localcommunity.c">localcommunity.c</a> -- C source code<br> <a href="metacommunity.c">metacommunity.c</a> -- C source code</p> <p><a href="localcommunity.out">localcommunity.out</a> -- compiled code<br> <a href="metacommunity.out">metacommunity.out</a> -- compiled code</p> <p> </p></blockquote><h2>Description</h2><blockquote> <p>Program metacommunity.c simulates dominance diversity curves under equilibrium between speciation and extinction by drift, using Ewens's algorithm. (See top of the program file for more details.) </p> <p>Program localcommunity.c simulates community drift with immigration. (See top of the program file for more details.)</p> <p>Both programs interactively ask for the input parameters. The program </p> <p>localcommunity requires, in addition, data generated by the program </p> <p>metacommunity.</p> <p>The two programs have been tested in a variety of C compilers, therefore they should compile and run in most systems without problems. In Unix systems (including MAX OSX and Linux) the compile instruction is for metacommunity.c and localcommunity.c, respectively:</p> <p>cc metacommunity.c -lm</p> <p>cc localcommunity.c -lm</p> <p>or </p> <p>gcc metacommunity.c -lm</p> <p>gcc localcommunity.c -lm</p> <p>Both programs make use of the subroutine "ran2" of Press et al 1992. Numerical Recipes in C. This can be found in both listings of the programs. We strongly discourage any attempts to change the function ran2, unless the reader is familiar with the procedures to generate pseudo-random numbers.</p> <p>Press, W. H., S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery. 1992. Numerical Recipes in C, Second Edition. Cambridge University Press, Cambridge, UK.</p> <p> </p> </blockquote>

Keyword(s)

License

CC0