MPI_GRAPHDIMS_GET(3)MPI_GRAPHDIMS_GET(3)NAMEMPI_Graphdims_get - Retrieves graph topology information associated with
a communicator
SYNOPSIS
C:
#include <mpi.h>
int MPI_Graphdims_get ( comm, nnodes, nedges )
MPI_Comm comm;
int *nnodes;
int *nedges;
C++:
#include <mpi.h>
void Graphcomm::Get_dims(
int nnodes[],
int nedges[]) const
Fortran:
INCLUDE "mpif.h" (or USE MPI)
INTEGER comm, nnodes, nedges, ierror
CALL MPI_GRAPHDIMS_GET(comm, nnodes, nedges, ierror)
STANDARDS
This release implements the MPI 1.2 standard, as documented by the MPI
Forum in the spring 1997 release of MPI: A Message Passing Interface
Standard.
DESCRIPTION
The MPI_Graphdims_get routine retrieves graph topology information
associated with a communicator. This routine accepts the following
parameters:
comm Specifies the communicator for a group with a graph structure
(handle)
nnodes Returns the number of nodes in a graph (integer)
nedges Returns the number of edges in a graph (integer)
Page 1
MPI_GRAPHDIMS_GET(3)MPI_GRAPHDIMS_GET(3)
ierror Specifies the return code value for successful completion,
which is in MPI_SUCCESS. MPI_SUCCESS is defined in the mpif.h
file.
Page 2