In this exercise, you will put together parts from the previous exercise to provide a simple linear equation solver.

To make this a complete parallel program, we must handle the issue of input and output. Rather than specify the values of the boundary conditions of the distributed array, these values should be read in from a file. Assume that the file is in the same format as the output data from the Collecting data exercise.

Have process zero read this data and send it to the other processes. A Sample data file is available.

Use the Jacobi linear solver from the previous examples, as well as the data output from the "Collecting data" example.

Once your solution is working, consider enhancing it by

You may want to use these MPI routines in your solution:
MPI_Scatterv