#include #include #include #include #include #include #include #include #include #include #include static char help[] = "Solves a tridiagonal linear system with KSP.\n\n"; using namespace std; int main(int argc, char **argv){ int rank, size; MPI_Init (&argc, &argv); /* starts MPI */ MPI_Comm_rank (MPI_COMM_WORLD, &rank); /* get current process id */ MPI_Comm_size (MPI_COMM_WORLD, &size); /* get number of processes */ printf( "Hello world from process %d of %d\n", rank, size ); MPI_Finalize(); return 0; }