Function PGABuildDatatype

Function Documentation

MPI_Datatype PGABuildDatatype(PGAContext *ctx, int p, int pop)

Build an MPI datatype for string p in population pop.

Example

PGAContext *ctx;
int p;
MPI_Datatype dt;

...
dt = PGABuildDatatype (ctx, p, PGA_NEWPOP);

Parameters
  • ctx – context variable

  • p – index of an individual

  • pop – symbolic constant of the population

Returns

An MPI datatype for member p of population pop