void receive(broadcastMessage* m) { CkPrintf("Message: %s arrived at element %d\n", m->msg, CkMyPe()); assert(strcmp(m->msg,"|This is a short broadcast message|") == 0); mainProxy.exit(); }
void receive(eachToManyMessage* m) { assert(strcmp(m->msg,"|This is a short each-to-many array message|") == 0); delete m; mainProxy.exit(); }