https://github.com/anjohan/fortperc
Fortran percolation library with Hoshen-Kopelman algorithm.
https://github.com/anjohan/fortperc
fortran fortran-library fortran2008 percolation
Last synced: 25 days ago
JSON representation
Fortran percolation library with Hoshen-Kopelman algorithm.
- Host: GitHub
- URL: https://github.com/anjohan/fortperc
- Owner: anjohan
- License: mit
- Created: 2018-06-01T10:49:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-09T14:36:48.000Z (over 3 years ago)
- Last Synced: 2024-03-26T03:51:42.790Z (over 1 year ago)
- Topics: fortran, fortran-library, fortran2008, percolation
- Language: Fortran
- Homepage: https://anjohan.github.io/fortperc
- Size: 817 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fortperc
[](https://travis-ci.org/anjohan/fortperc) [](https://zenodo.org/badge/latestdoi/135706049)
See documentation [here](https://anjohan.github.io/fortperc/). (Generated by the brilliant tool [FORD](https://github.com/cmacmackin/ford).)
This library contains various useful functions for doing percolation in Fortran.
[`src/hk.f90`](https://github.com/anjohan/fortperc/blob/master/src/hk.f90) contains a Fortran implementation of the Hoshen-Kopelman algorithm, inspired by Tobin Fricke's C implementation at https://gist.github.com/tobin/909424.
[`src/percolation.f90`](https://github.com/anjohan/fortperc/blob/master/src/percolation.f90) contains subroutines/functions which calculate common quantities in percolation, such as the size distribution of clusters, the density of the percolating cluster, etc.