Solve the 2D Poisson's equation
on a square in parallel using OpenMPI. Successive over-relaxation is used to obtain a solution
Usage:
./parps <infile> <outfile> <n> <gamma> <crit>
infile = input file for
outfile = solution output file for
n = system size
gamma = over-relaxation parameter
crit = convergence criterion (sum of all differences between iterations)
To plot the example result matrices and compare them:
./plotmat.py serial.dat parallel.dat
To monitor convergence of solutions from log files in real time, a Gnuplot script can be used:
gnuplot residual.gp