Abelian sandpile model: Difference between revisions

Content added Content deleted
 
Line 409: Line 409:
</syntaxhighlight>
</syntaxhighlight>
{{Output}}
{{Output}}
[[File:Ada sandpile 555555 600.png|thumb|Output of ./abeliian_sandpile 555555 600 converted to PNG]]
The program produces a text dump of the grid for size < 16, and always
The program produces a text dump of the grid for size < 16, and always
emits a `sandpile.ppm` graphics file.
emits a `sandpile.ppm` graphics file.
[[File:Ada sandpile 555555 600.png|thumb|center|Output of ./abelian_sandpile 555555 600 converted to PNG]]

Here is the graphical output from running with 555555 grains at a grid size of 600. (Converted to PNG from the output PPM with GIMP.)
Here is the graphical output from running with 555555 grains at a grid size of 600. (Converted to PNG from the output PPM with GIMP.)