.TH PGAGetRank 4 "05/01/95" " " "PGAPack" .SH NAME PGAGetRank \- Returns the rank of the processor in communicator comm. If comm is NULL or a sequential version of PGAPack is used, PGAGetRank() returns 0. .SH INPUT PARAMETERS .PD 0 .TP ctx - context variable structure pointer .PD 0 .TP comm - an MPI communicator .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP none .PD 1 .SH SYNOPSIS .nf #include "pgapack.h" int PGAGetRank(ctx, comm) PGAContext *ctx MPI_Comm comm .fi .SH LOCATION parallel.c .SH EXAMPLE .nf Example: PGAContext *ctx; int rank; : rank = PGAGetRank(ctx, MPI_COMM_WORLD); if (rank == 0) { LetTheMasterDoSomething(); } .fi