#include <iostream>
#include "mpi.h"
◆ main()
Minimal mpi self test.
41 MPI_Init(&argc,&argv);
42 MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
43 MPI_Comm_rank(MPI_COMM_WORLD,&myid);
53 std::cerr <<
"Too many cores! Mpi self tests must be run on two cores."
58 std::cout <<
"This worked" << std::endl;