Ignore:
Timestamp:
06/13/18 16:48:53 (6 years ago)
Author:
oabramkina
Message:

Replacing Boost's unordered_map and shared_pointer by its STL counterparts.

Two notes for Curie:

  • one can see the content of unordered_map with ddt only if XIOS has been compiled with gnu
  • XIOS will not compile any more with pgi (all available versions use old STL which are not up to the c++11 norms)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/axis.cpp

    r1421 r1542  
    202202     { 
    203203       // size estimation for sendDistributedValue 
    204        boost::unordered_map<int, vector<size_t> >::const_iterator it, ite = indSrv_[client->serverSize].end(); 
     204       std::unordered_map<int, vector<size_t> >::const_iterator it, ite = indSrv_[client->serverSize].end(); 
    205205       for (it = indSrv_[client->serverSize].begin(); it != ite; ++it) 
    206206       { 
     
    623623       
    624624        std::vector<int> serverZeroIndex; 
    625         serverZeroIndex = serverDescription.computeServerGlobalIndexInRange(std::make_pair<size_t,size_t>(indexBegin, indexEnd), 0);       
     625        serverZeroIndex = serverDescription.computeServerGlobalIndexInRange(std::make_pair<size_t&,size_t&>(indexBegin, indexEnd), 0); 
    626626 
    627627        std::list<int> serverZeroIndexLeader; 
     
    689689    // we need to compute the local index on the server from its corresponding global index 
    690690    size_t nbWritten = 0, indGlo;       
    691     boost::unordered_map<size_t,size_t>::const_iterator itb = globalLocalIndexMap_.begin(), 
     691    std::unordered_map<size_t,size_t>::const_iterator itb = globalLocalIndexMap_.begin(), 
    692692                                                        ite = globalLocalIndexMap_.end(), it;           
    693693    CArray<size_t,1>::const_iterator itSrvb = writtenGlobalIndex.begin(), 
     
    721721    { 
    722722      nbWritten = 0; 
    723       boost::unordered_map<size_t,size_t>::const_iterator itb = globalLocalIndexMap_.begin(), 
     723      std::unordered_map<size_t,size_t>::const_iterator itb = globalLocalIndexMap_.begin(), 
    724724                                                          ite = globalLocalIndexMap_.end(), it; 
    725725      for (int i = 0; i < zoom_index.numElements(); ++i) 
     
    745745    // { 
    746746    //   nbWritten = 0; 
    747     //   boost::unordered_map<size_t,size_t> localGlobalIndexMap; 
     747    //   std::unordered_map<size_t,size_t> localGlobalIndexMap; 
    748748    //   for (itSrv = itSrvb; itSrv != itSrve; ++itSrv) 
    749749    //   { 
     
    810810      CDistributionServer srvDist(server->intraCommSize, nBegin, nSize, nBeginGlobal, nGlob);  
    811811      const CArray<size_t,1>& writtenGlobalIndex  = srvDist.getGlobalIndex(); 
    812       boost::unordered_map<size_t,size_t>::const_iterator itb = globalLocalIndexMap_.begin(), 
     812      std::unordered_map<size_t,size_t>::const_iterator itb = globalLocalIndexMap_.begin(), 
    813813                                                          ite = globalLocalIndexMap_.end(), it;    
    814814 
    815815      CArray<size_t,1>::const_iterator itSrvb = writtenGlobalIndex.begin(), 
    816816                                       itSrve = writtenGlobalIndex.end(), itSrv; 
    817       boost::unordered_map<size_t,size_t> localGlobalIndexMap; 
     817      std::unordered_map<size_t,size_t> localGlobalIndexMap; 
    818818      for (itSrv = itSrvb; itSrv != itSrve; ++itSrv) 
    819819      { 
     
    11371137      } 
    11381138 
    1139       boost::unordered_map<int, std::vector<size_t> >::const_iterator it, iteMap; 
     1139      std::unordered_map<int, std::vector<size_t> >::const_iterator it, iteMap; 
    11401140      iteMap = indSrv_[nbServer].end(); 
    11411141      for (int k = 0; k < connectedServerRank_[nbServer].size(); ++k) 
Note: See TracChangeset for help on using the changeset viewer.