View Code? Open in Web Editor
NEW
A percolation simulator in C
License: MIT License
percolator's Introduction
- Download the file
compi_c
by following the instruction here (in french):
http://www-igm.univ-mlv.fr/ens/Common/libMlv/install.php
- copy the file
compi_c
in the directory where Percolation.c
is saved.
- run
chmod +x compi_c
- compile using
./compi_c Percolation.c
- wait for the percolation lattice to be generated;
- chose the probability p of percolation using +0.01 or -0.01;
- press distrib to generate closed edges (gray) and open edges (blue);
- press LAUCH to percolate from the top of the lattice;
- exit after pressing LAUNCH;
percolator's People
Contributors
Watchers