Function PGASendIndividual

Function Documentation

void PGASendIndividual(PGAContext *ctx, int p, int pop, int dest, int tag, MPI_Comm comm)

Transmit an individual to another process.

Description

This is usually called by one of the functions called via PGAEvaluate().

Example

PGAContext *ctx;
int p, dest;

...
dest = SelectAFreeProcessor ();
PGASendIndividual (ctx, p, PGA_NEWPOP, dest, PGA_SR_STRINGTOEVAL, comm);

Parameters
  • ctx – context variable

  • p – index of an individual

  • pop – symbolic constant of the population

  • dest – ID of the process where this is going

  • tag – MPI tag to send with the individual

  • comm – MPI communicator

Returns

None