- Serial Number 0036
- Author(s):
- Paul Coddington
- Code Title:
- Metropolis Monte Carlo Simulation for Spin Models
- Purpose:
- Uses Metropolis Monte Carlo algorithm to simulate an Ising spin model
of a ferromagnet, and calculate the energy and magnetization at a
particular temperature.
- Noteworthy Features of the Code:
- This is a good example of a regular grid algorithm with local
communications, which should be implemented efficiently in HPF.
The only possible problem with obtaining good performance is that the
computation to communication ratio is quite small, so the efficiency
may not be good unless the compiler implements blocked communications
(i.e. passes all edge information at once, rather than one grid point
at a time). The message passing code has two versions which use blocked
and non-blocked communications, with the latter being much less efficient.
- Documentation
For further information, contact
HPFA maintainers.
Return to HPFA Home Page.