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

    r1412 r1542  
    1515#include "mpi_tag.hpp" 
    1616#include "grid.hpp" 
    17 #include <boost/unordered_map.hpp> 
     17#include <unordered_map> 
    1818#include "timer.hpp" 
    1919 
     
    479479  SourceDestinationIndexMap::const_iterator itbIndex = globaIndexWeightFromSrcToDst.begin(), 
    480480                                            iteIndex = globaIndexWeightFromSrcToDst.end(), itIndex; 
    481   typedef boost::unordered_map<size_t, std::vector<std::pair<size_t,double> > > SendIndexMap; 
     481  typedef std::unordered_map<size_t, std::vector<std::pair<size_t,double> > > SendIndexMap; 
    482482  std::map<int,int> sendRankSizeMap,recvRankSizeMap; 
    483483  int connectedClient = globaIndexWeightFromSrcToDst.size(); 
     
    522522  std::vector<MPI_Request> requests; 
    523523  std::vector<MPI_Status> status; 
    524   boost::unordered_map<int, unsigned char* > recvMaskDst; 
    525   boost::unordered_map<int, unsigned long* > recvGlobalIndexSrc; 
     524  std::unordered_map<int, unsigned char* > recvMaskDst; 
     525  std::unordered_map<int, unsigned long* > recvGlobalIndexSrc; 
    526526  for (std::map<int,int>::const_iterator itRecv = recvRankSizeMap.begin(); itRecv != recvRankSizeMap.end(); ++itRecv) 
    527527  { 
     
    537537  } 
    538538 
    539   boost::unordered_map<int, CArray<size_t,1> > globalIndexDst; 
    540   boost::unordered_map<int, CArray<double,1> > weightDst; 
    541   boost::unordered_map<int, unsigned char* > sendMaskDst; 
    542   boost::unordered_map<int, unsigned long* > sendGlobalIndexSrc; 
     539  std::unordered_map<int, CArray<size_t,1> > globalIndexDst; 
     540  std::unordered_map<int, CArray<double,1> > weightDst; 
     541  std::unordered_map<int, unsigned char* > sendMaskDst; 
     542  std::unordered_map<int, unsigned long* > sendGlobalIndexSrc; 
    543543  for (itIndex = itbIndex; itIndex != iteIndex; ++itIndex) 
    544544  { 
     
    670670  delete [] recvSizeBuff; 
    671671 
    672   boost::unordered_map<int, unsigned char* >::const_iterator itChar; 
     672  std::unordered_map<int, unsigned char* >::const_iterator itChar; 
    673673  for (itChar = sendMaskDst.begin(); itChar != sendMaskDst.end(); ++itChar) 
    674674    delete [] itChar->second; 
    675675  for (itChar = recvMaskDst.begin(); itChar != recvMaskDst.end(); ++itChar) 
    676676    delete [] itChar->second; 
    677   boost::unordered_map<int, unsigned long* >::const_iterator itLong; 
     677  std::unordered_map<int, unsigned long* >::const_iterator itLong; 
    678678  for (itLong = sendGlobalIndexSrc.begin(); itLong != sendGlobalIndexSrc.end(); ++itLong) 
    679679    delete [] itLong->second; 
Note: See TracChangeset for help on using the changeset viewer.