PGAGetCommunicator4
Returns the default communicator used when pgarun is called.
Usage
#include "pgapack.h" MPI_Comm PGAGetCommunicator(ctx) PGAContext *ctx
Input parameters
- ctx
-
- context variable
Output parameters
- none
Location
parallel.c
Examples
Example: MPI_Comm comm; PGAContext *ctx, double f(PGAContext *ctx, int p, int pop); : ctx = PGACreate(&argc, argv, PGA_DATATYPE_BINARY, 100, PGA_MAXIMIZE); PGASetUp(ctx); comm = PGAGetCommunicator(ctx);
Releases
Unchanged in 4 releases since Debian 5.0 (Lenny).