mpi_comm.c
//Initialize the MPI framework and return the
//number of active MPI processes.
Initialize the MPI framework and return the
number of active MPI processes.
Initialize the MPI framework and return the number of active MPI processes .
int init_mpi()
{
    int numprocs;
    MPI_Init(NULL, NULL);
    MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
    return numprocs;
}
int init_mpi ( ) { int numprocs ; MPI_Init ( NULL , NULL ) ; MPI_Comm_size ( MPI_COMM_WORLD , & numprocs ) ; return numprocs ; }
Initialize the MPI framework and return the
number of active MPI processes.
Initialize the MPI framework and return the number of active MPI processes .