Ignore:
Timestamp:
04/08/16 15:00:15 (8 years ago)
Author:
mhnguyen
Message:

Improvements for dht

+) Implement adaptive hierarchy for dht, level of hierarchy depends on number of processes
+) Remove some redundant codes

Test
+) On Curie
+) All tests are correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/generic_algorithm_transformation.hpp

    r831 r833  
    7070 
    7171protected: 
     72  typedef boost::unordered_map<int, std::vector<int> > TransformationIndexMap; 
     73  typedef boost::unordered_map<int, std::vector<double> > TransformationWeightMap; 
     74  typedef boost::unordered_map<int, std::vector<int> > TransformationPositionMap; 
     75 
    7276  //! Map between global index of destination element and source element 
    73   std::vector<std::map<int, std::vector<int> > > transformationMapping_; 
     77  std::vector<TransformationIndexMap> transformationMapping_; 
    7478  //! Weight corresponding of source to destination 
    75   std::vector<std::map<int, std::vector<double> > > transformationWeight_; 
     79  std::vector<TransformationWeightMap> transformationWeight_; 
    7680  //! Map of global index of destination element and corresponding global index of other elements in the same grid 
    7781  //! By default, one index of an element corresponds to all index of remaining element in the grid. So it's empty 
    78   std::vector<std::map<int, std::vector<int> > > transformationPosition_; 
     82  std::vector<TransformationPositionMap> transformationPosition_; 
    7983 
    8084  //! Id of auxillary inputs which help doing transformation dynamically 
Note: See TracChangeset for help on using the changeset viewer.