In this assignment you reimplement the heat diffusion exercise from Assignment 4 in MPI.
Implement in C using MPI a program called diffusion
that
average: X
.average absolute difference: Y
.Your program should accept command line arguments
mpirun -n 1 ./diffusion -n20 -d0.02
to compute 20 iterations with diffusion constant 0.02. You may only use MPI parallelism.
If you take this course as a student at Chalmers/GU, you can find the timing goals in the Assignment Timing Goals.