/// Pack-Unpack method. /// We pack/unpack the handle to the collide manager group. /// When unpacking, we register this element with the local branch /// of the collide manager group on the new PE. void pup(PUP::er &p) { ArrayElement1D::pup(p); p|collide; if (p.isUnpacking()) CollideRegister(collide, thisIndex); }
void pup(PUP::er &p) { p|collide; if (p.isUnpacking()) CollideRegister(collide,thisIndex); }
Hello(const CollideHandle &collide_) :collide(collide_) { CkPrintf("Creating element %d on PE %d\n",thisIndex,CkMyPe()); nTimes=0; CollideRegister(collide,thisIndex); }