next up previous index
Next: The Assignment Up: MPI Graphics and Process Previous: Program life_g.c

   
Exercises

1
Rewrite program life_g to make use of MPI functions discussed in section 5.2.5 that talked about the diffusion program.
2
Rewrite program (1) so that the whole matrix is laid out onto a 2-dimensional grid of processes.
3
Rewrite program (2) to dump the whole matrix onto an MPI file at the end of its execution.
4
Rewrite program (3) to read the initial data from an MPI file if such a request is made on the command line. Otherwise the program should initialize the matrix as before.



Zdzislaw Meglicki
2004-04-29