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/field.cpp

    r591 r595  
    872872         msg << this->getId(); 
    873873         msg << id; 
    874          event.push(client->getServerLeader(),1,msg); 
     874         const std::list<int>& ranks = client->getRanksServerLeader(); 
     875         for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 
     876           event.push(*itRank,1,msg); 
    875877         client->sendEvent(event); 
    876878       } 
     
    892894         msg << this->getId(); 
    893895         msg << id; 
    894          event.push(client->getServerLeader(),1,msg); 
     896         const std::list<int>& ranks = client->getRanksServerLeader(); 
     897         for (std::list<int>::const_iterator itRank = ranks.begin(), itRankEnd = ranks.end(); itRank != itRankEnd; ++itRank) 
     898           event.push(*itRank,1,msg); 
    895899         client->sendEvent(event); 
    896900       } 
Note: See TracChangeset for help on using the changeset viewer.