Example #1
0
  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();
  
  }
Example #2
0
 void receive(eachToManyMessage* m) {
   assert(strcmp(m->msg,"|This is a short each-to-many array message|") == 0);
   delete m;
   mainProxy.exit();
 }