next up previous
Next: Metropolis Code in Up: Parallel Metropolis Algorithms Previous: Metropolis Code in

Parallel Metropolis -- Message Passing

If the number of lattice sites per processor is , need not use the checkerboard scheme, since cannot update neighboring sites at once.

Notice that this algorithm, when written using a message passing language such as Express or MPI, looks exactly the same as the sequential algorithm! The only difference is how the shift subroutine, which finds neighboring spin values, is implemented:

Also, for the parallel algorithm, the size variable refers to the size of the sub-lattice on each processor, not the total lattice size.



Paul Coddington, Northeast Parallel Architectures Center at Syracuse University, paulc@npac.syr.edu