PGASetCommunicator3
Set the default communicator to use when pgarun is called. does not necessarily need to be the same as the number of processes in mpi_comm_world (which is the default).
Usage
#include "pgapack.h" void PGASetCommunicator(ctx, comm) PGAContext *ctx MPI_Comm comm
Input parameters
ctx
|
- context variable |
|---|---|
comm
|
- communicator to use |
Output parameters
- none
Location
parallel.c
Examples
Example: MPI_Comm mycomm; PGAContext *ctx, double f(PGAContext *ctx, int p, int pop); : ctx = PGACreate(&argc, argv, PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE); PGASetCommunicator(ctx, mycomm); PGASetUp(ctx); PGARun(ctx, f); PGADestroy(ctx);
Releases
8 releases since Debian 1.1 (Buzz); the text changed 1 time.