[galib] Sending GAListgenome in PVM.
Moon Sup Choi
totaljj at gmail.com
Tue Jan 9 10:57:05 EST 2007
I need to implement parallel version of ex26 using PVM.
The modified version of below code is required for sending GAListGenome.
int
SendGenomeInitialize(GAGenome& g, int tid) {
GAListGenome<int> & genome = (GAListGenome<int> &)g;
int status = 0;
int length = genome.size();
status = pvm_initsend(PvmDataDefault);
status = pvm_pkint(&length, 1, 1);
status = pvm_send(tid, MSG_GENOME_INITIALIZE);
return status;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20070109/dde9eff9/attachment.htm
More information about the galib
mailing list