QUAD
An MPI program to estimate an integral


QUAD is a program which estimates an integral over [0,1].

A typical approach would be to divide the interval [0,1] into P subintervals, and have each process produce an estimate for its subinterval.

This program, instead, takes N evenly spaced values in [0,1], and then assigns them in alternating order to the processes. If there were two processes, then process 0 would be getting all the odd numbered points, and process 1 the evens, for instance.


Source Code:

Scripts:


You can go up one level to the FSU MPI 2008 web page.

Last revised on 22 August 2008.