Last change
on this file since 815 was
815,
checked in by liveletlive, 16 years ago
|
Committing the /tmp/gekco/pgapack folder that contains the older PGAPack version and Prof. Klimecks changes to it.
|
File size:
784 bytes
|
Line | |
---|
1 | .TH PGASetCommunicator 4 "05/01/95" " " "PGAPack" |
---|
2 | .SH NAME |
---|
3 | PGASetCommunicator \- Set the default communicator to use when PGARun is |
---|
4 | called. Does not necessarily need to be the same as the number of |
---|
5 | processes in MPI_COMM_WORLD (which is the default). |
---|
6 | .SH INPUT PARAMETERS |
---|
7 | .PD 0 |
---|
8 | .TP |
---|
9 | ctx |
---|
10 | - context variable |
---|
11 | .PD 0 |
---|
12 | .TP |
---|
13 | comm |
---|
14 | - communicator to use |
---|
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 | void PGASetCommunicator(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 | MPI_Comm mycomm; |
---|
35 | PGAContext *ctx, |
---|
36 | double f(PGAContext *ctx, int p, int pop); |
---|
37 | : |
---|
38 | ctx = PGACreate(&argc, argv, PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE); |
---|
39 | PGASetCommunicator(ctx, mycomm); |
---|
40 | PGASetUp(ctx); |
---|
41 | PGARun(ctx, f); |
---|
42 | PGADestroy(ctx); |
---|
43 | |
---|
44 | .fi |
---|
Note: See
TracBrowser
for help on using the repository browser.