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/server_distribution_description.hpp

    r1258 r1542  
    1313#include "xios_spl.hpp" 
    1414#include "array_new.hpp" 
    15 #include <boost/unordered_map.hpp> 
     15#include <unordered_map> 
    1616 
    1717namespace xios 
     
    3939    void computeServerDistribution(bool doComputeGlobalIndex = false, int positionDimensionDistributed = 1); 
    4040    std::vector<int> computeServerGlobalIndexInRange(const std::pair<size_t, size_t>& indexBeginEnd, int positionDimensionDistributed = 1); 
    41     std::vector<int> computeServerGlobalByElement(std::vector<boost::unordered_map<size_t,std::vector<int> > >& indexServerOnElement, 
     41    std::vector<int> computeServerGlobalByElement(std::vector<std::unordered_map<size_t,std::vector<int> > >& indexServerOnElement, 
    4242                                                  int rank, 
    4343                                                  int clientSize, 
     
    4848    std::vector<std::vector<int> > getServerDimensionSizes() const; 
    4949    const std::vector<CArray<size_t,1> >& getGlobalIndex() const; 
    50     const boost::unordered_map<size_t,int>& getGlobalIndexRange() const; 
     50    const std::unordered_map<size_t,int>& getGlobalIndexRange() const; 
    5151    int getDimensionDistributed(); 
    5252 
     
    7373 
    7474    //!< In case we need only global index of one server with specific rank 
    75     boost::unordered_map<size_t,int> globalIndex_; 
     75    std::unordered_map<size_t,int> globalIndex_; 
    7676 
    7777    //!< Type of distribution on server side 
Note: See TracChangeset for help on using the changeset viewer.