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).
ctx
- context variable
comm
- communicator to use
none
#include "pgapack.h" void PGASetCommunicator(ctx, comm) PGAContext *ctx MPI_Comm comm
parallel.c
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);