mpi_comm_size(mpi_comm_world,&amp;numprocs);