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/transformation/axis_algorithm_inverse.cpp

    r936 r1542  
    108108  } 
    109109 
    110   typedef boost::unordered_map<size_t, std::vector<double> > GlobalIndexMapFromSrcToDest; 
     110  typedef std::unordered_map<size_t, std::vector<double> > GlobalIndexMapFromSrcToDest; 
    111111  GlobalIndexMapFromSrcToDest globalIndexMapFromSrcToDest; 
    112112  TransformationIndexMap& transMap = this->transformationMapping_[0]; 
     
    126126  dhtIndexProcRank.computeIndexInfoMapping(globalSrcIndex); 
    127127  CClientClientDHTInt::Index2VectorInfoTypeMap& computedGlobalIndexOnProc = dhtIndexProcRank.getInfoIndexMap(); 
    128   boost::unordered_map<int, std::vector<size_t> > globalSrcIndexSendToProc; 
     128  std::unordered_map<int, std::vector<size_t> > globalSrcIndexSendToProc; 
    129129  for (int idx = 0; idx < localIndex; ++idx) 
    130130  { 
     
    137137  } 
    138138 
    139   boost::unordered_map<int, std::vector<size_t> >::const_iterator itbIndex = globalSrcIndexSendToProc.begin(), itIndex, 
     139  std::unordered_map<int, std::vector<size_t> >::const_iterator itbIndex = globalSrcIndexSendToProc.begin(), itIndex, 
    140140                                                                  iteIndex = globalSrcIndexSendToProc.end(); 
    141141  std::map<int,int> sendRankSizeMap,recvRankSizeMap; 
     
    175175  std::vector<MPI_Request> requests; 
    176176  std::vector<MPI_Status> status; 
    177   boost::unordered_map<int, unsigned long* > recvGlobalIndexSrc; 
    178   boost::unordered_map<int, double* > sendValueToDest; 
     177  std::unordered_map<int, unsigned long* > recvGlobalIndexSrc; 
     178  std::unordered_map<int, double* > sendValueToDest; 
    179179  for (std::map<int,int>::const_iterator itRecv = recvRankSizeMap.begin(); itRecv != recvRankSizeMap.end(); ++itRecv) 
    180180  { 
     
    188188  } 
    189189 
    190   boost::unordered_map<int, unsigned long* > sendGlobalIndexSrc; 
    191   boost::unordered_map<int, double* > recvValueFromSrc; 
     190  std::unordered_map<int, unsigned long* > sendGlobalIndexSrc; 
     191  std::unordered_map<int, double* > recvValueFromSrc; 
    192192  for (itIndex = itbIndex; itIndex != iteIndex; ++itIndex) 
    193193  { 
     
    271271  delete [] recvSizeBuff; 
    272272 
    273   boost::unordered_map<int, double* >::const_iterator itChar; 
     273  std::unordered_map<int, double* >::const_iterator itChar; 
    274274  for (itChar = sendValueToDest.begin(); itChar != sendValueToDest.end(); ++itChar) 
    275275    delete [] itChar->second; 
    276276  for (itChar = recvValueFromSrc.begin(); itChar != recvValueFromSrc.end(); ++itChar) 
    277277    delete [] itChar->second; 
    278   boost::unordered_map<int, unsigned long* >::const_iterator itLong; 
     278  std::unordered_map<int, unsigned long* >::const_iterator itLong; 
    279279  for (itLong = sendGlobalIndexSrc.begin(); itLong != sendGlobalIndexSrc.end(); ++itLong) 
    280280    delete [] itLong->second; 
Note: See TracChangeset for help on using the changeset viewer.