Ignore:
Timestamp:
05/26/15 16:13:46 (9 years ago)
Author:
rlacroix
Message:

Allow using more servers than clients.

This will be useful later when implementing server to client communications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/group_template_impl.hpp

    r591 r595  
    385385         msg<<this->getId() ; 
    386386         msg<<id ; 
    387          event.push(client->getServerLeader(),1,msg) ; 
     387         const std::list<int>& ranks = client->getRanksServerLeader(); 
     388         for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 
     389           event.push(*itRank,1,msg) ; 
    388390         client->sendEvent(event) ; 
    389391       } 
     
    407409         msg<<this->getId() ; 
    408410         msg<<id ; 
    409          event.push(client->getServerLeader(),1,msg) ; 
     411         const std::list<int>& ranks = client->getRanksServerLeader(); 
     412         for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 
     413           event.push(*itRank,1,msg) ; 
    410414         client->sendEvent(event) ; 
    411415       } 
Note: See TracChangeset for help on using the changeset viewer.