Intermediate MPI

Previous Up Next
Jacobi with one-dimensional decomposition
Alternative Neighbor Exchanges
Jacobi with two-dimensional decomposition
Build Files

Example Programs for Chapter 4: Intermediate MPI

This section contains the example programs from Chapter 4, along with a Makefile and a Makefile.in that may be used with the configure program included with the examples.

Because many of the programs presented in this chapter are not full routines but only fragments of routines, the codes presented here are not identical to those in the book. For example, the code from Figure 4.4, which is the code fragment for the Jacobi iteration, is presented here as a full routine, sweep1d. Additional code is provided so that a complete application can be run.