PGAGetCommunicator(4)

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).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.