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/node/grid.cpp

    r593 r595  
    949949         msg<<this->getId() ; 
    950950         msg<<id ; 
    951          event.push(client->getServerLeader(),1,msg) ; 
     951         const std::list<int>& ranks = client->getRanksServerLeader(); 
     952         for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 
     953           event.push(*itRank,1,msg); 
    952954         client->sendEvent(event) ; 
    953955       } 
     
    974976         msg<<this->getId() ; 
    975977         msg<<id ; 
    976          event.push(client->getServerLeader(),1,msg) ; 
     978         const std::list<int>& ranks = client->getRanksServerLeader(); 
     979         for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 
     980           event.push(*itRank,1,msg); 
    977981         client->sendEvent(event) ; 
    978982       } 
Note: See TracChangeset for help on using the changeset viewer.