Returns the rank of the processor in communicator comm. if comm is null or a sequential version of pgapack is used, pgagetrank() returns 0.
ctx
- context variable structure pointer
comm
- an MPI communicator
none
#include "pgapack.h" int PGAGetRank(ctx, comm) PGAContext *ctx MPI_Comm comm
parallel.c
Example: PGAContext *ctx; int rank; : rank = PGAGetRank(ctx, MPI_COMM_WORLD); if (rank == 0) { LetTheMasterDoSomething(); }