/* Metropolis Monte Carlo simulation of hard disks confined in a circle Cameron F. Abrams Written for the course CHE 800-002, Molecular Simulation Spring 0304 compile using "gcc -o hdisk hdisk.c -lm -lgsl" (assumes the GNU Scientific Library is installed) runs as "./hdisk -N -rho \ -R \ -nc \ -s " You must have the GNU Scientific Library installed; see the coursenotes to learn how to do this. Drexel University, Department of Chemical Engineering Philadelphia (c) 2004 */ #include #include #include #include void out ( FILE * fp, double * rx, double * ry, int n ) { int i; for (i=0;iR2); if (reject) noob++; /* check for overlaps with other particles */ if (!reject) { for (j=0;j