Function PGAReceiveEvaluation
Defined in File parallel.c
Function Documentation
-
static void PGAReceiveEvaluation(PGAContext *ctx, int p, int pop, int source, int tag, MPI_Comm comm, MPI_Status *status)
Receive evaluation and aux eval from another process.
Example
Receive evaluation from sub-process and place it into the first temporary location in
PGA_NEWPOP
.PGAContext *ctx; MPI_Comm comm; MPI_Status status; ... PGAReceiveEvaluation (ctx, PGA_TEMP1, PGA_NEWPOP, 0, PGA_COMM_EVALOFSTRING, comm, &status);
- Parameters:
ctx – contex variable
p – index of an individual
pop – symbolic constant of the population
source – ID of the process from which to receive
tag – MPI tag to look for
comm – an MPI communicator
status – pointer to an MPI status structure
- Returns:
string p in population pop is changed by side-effect