Last change
on this file since 815 was
815,
checked in by liveletlive, 17 years ago
|
Committing the /tmp/gekco/pgapack folder that contains the older PGAPack version and Prof. Klimecks changes to it.
|
File size:
643 bytes
|
Line | |
---|
1 | .TH PGAGetRank 4 "05/01/95" " " "PGAPack" |
---|
2 | .SH NAME |
---|
3 | PGAGetRank \- Returns the rank of the processor in communicator comm. If |
---|
4 | comm is NULL or a sequential version of PGAPack is used, PGAGetRank() |
---|
5 | returns 0. |
---|
6 | .SH INPUT PARAMETERS |
---|
7 | .PD 0 |
---|
8 | .TP |
---|
9 | ctx |
---|
10 | - context variable structure pointer |
---|
11 | .PD 0 |
---|
12 | .TP |
---|
13 | comm |
---|
14 | - an MPI communicator |
---|
15 | .PD 1 |
---|
16 | .SH OUTPUT PARAMETERS |
---|
17 | .PD 0 |
---|
18 | .TP |
---|
19 | none |
---|
20 | |
---|
21 | .PD 1 |
---|
22 | .SH SYNOPSIS |
---|
23 | .nf |
---|
24 | #include "pgapack.h" |
---|
25 | int PGAGetRank(ctx, comm) |
---|
26 | PGAContext *ctx |
---|
27 | MPI_Comm comm |
---|
28 | .fi |
---|
29 | .SH LOCATION |
---|
30 | parallel.c |
---|
31 | .SH EXAMPLE |
---|
32 | .nf |
---|
33 | Example: |
---|
34 | PGAContext *ctx; |
---|
35 | int rank; |
---|
36 | : |
---|
37 | rank = PGAGetRank(ctx, MPI_COMM_WORLD); |
---|
38 | if (rank == 0) { |
---|
39 | LetTheMasterDoSomething(); |
---|
40 | } |
---|
41 | |
---|
42 | .fi |
---|
Note: See
TracBrowser
for help on using the repository browser.