This code was originally implemented for:
"q-state Potts model metastability study using optimized GPU-based Monte Carlo algorithms",
Ezequiel E. Ferrero, Juan Pablo De Francesco, Nicolás Wolovick, Sergio A. Cannas
Computer Physics Communications Volume 183, Issue 8, August 2012, Pages 1578–1587
The code is freely available under GNU GPL v3.
- Added the CPU version. Minor code cleanups.
- Original release used in the article.