PGAGetCommunicator − Returns the default communicator used when PGARun is called.
ctx |
- context variable |
none |
#include "pgapack.h"
MPI_Comm PGAGetCommunicator(ctx)
PGAContext *ctx
parallel.c
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);