PGAGetRank(3)

PGAGetRank3

Returns the rank of the processor in communicator comm. if comm is null or a sequential version of pgapack is used, pgagetrank() returns 0.

Part of PGAGetRank(4).

Usage

#include "pgapack.h"
int  PGAGetRank(ctx, comm)
PGAContext *ctx
MPI_Comm comm

Input parameters

ctx

- context variable structure pointer

comm

- an MPI communicator

Output parameters

none

Location

parallel.c

Examples

Example:
PGAContext  *ctx;
int          rank;
:
rank = PGAGetRank(ctx, MPI_COMM_WORLD);
if (rank == 0) {
LetTheMasterDoSomething();
}

Releases

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.