Query: pgasetcommunicator
OS: debian
Section: 4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PGASetCommunicator(4) PGAPack PGASetCommunicator(4)NAMEPGASetCommunicator - Set the default communicator to use when PGARun is called.DESCRIPTIONDoes not necessarily need to be the same as the number of processes in MPI_COMM_WORLD (which is the default).INPUT PARAMETERSctx - context variable comm - communicator to useOUTPUT PARAMETERSnoneSYNOPSIS#include "pgapack.h" void PGASetCommunicator(ctx, comm) PGAContext *ctx MPI_Comm commLOCATIONparallel.cEXAMPLEExample: 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); 05/01/95 PGASetCommunicator(4)