An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# fortperc
[![Build Status](https://travis-ci.org/anjohan/fortperc.svg?branch=master)](https://travis-ci.org/anjohan/fortperc) [![DOI](https://zenodo.org/badge/135706049.svg)](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.