1 | #include "mpi.h" |
2 | #include <math.h> |
3 | int main (argc, argv) |
4 | int argc; char *argv[]; |
5 | { |
6 | int n, myid, numprocs, i, rc; |
7 | double PI25DT = 3.14159265358979323842643; |
8 | double mypi, pi, h, sum, x, a; |
9 | |
10 | MPI_Init(&argc, &argv); |
11 | MPI_Comm_size (MPI_COMM_WORLD, &numprocs); |
12 | MPI_Comm_rank (MPI_COMM_WORLD, &myid); |