05 May 2008 10:10:31 AM QUAD_MPI C version Compiled on May 5 2008 at 10:10:05 Estimate the integral of a function F(X) defined over a multidimensional domain using a quadrature rule stored in 3 files. Use MPI to divide the computation among multiple processes. The parallel processing is carried out as follows, with process 0 playing the role of "master": Process 0: * Reads 3 files defining a quadrature rule. * Divides the quadrature rule into PROC_NUM portions, sending one portion to each processor (including itself). * Carries out its portion of the computation * Collects and sums the contributions from other processes. Process I: * Receives one portion of the quadrature rule; * Carries out its portion of the computation * Sends its contribution to process 0. QUAD_MPI: User input: Quadrature rule X file = "cc_d2_level5_x.txt". Quadrature rule W file = "cc_d2_level5_w.txt". Quadrature rule R file = "cc_d2_level5_r.txt". Spatial dimension = 2 Number of points = 145 Process 0 contributes QUAD_PROC = 3.439506 Prob Dim Points Approx Exact Error Time 28 2 145 8.598764e-01 8.598764e-01 1.277268e-08 QUAD_MPI: Normal end of execution. 05 May 2008 10:10:31 AM