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

    r829 r833  
    2424           << "Size of axis destionation " <<axisDestination->getId() << " is " << axisDestination->n_glo.getValue()); 
    2525  } 
    26  
    27 //  this->computeIndexSourceMapping(); 
    2826} 
    2927 
     
    3331  this->transformationWeight_.resize(1); 
    3432 
    35   std::map<int, std::vector<int> >& transMap = this->transformationMapping_[0]; 
    36   std::map<int, std::vector<double> >& transWeight = this->transformationWeight_[0]; 
     33  TransformationIndexMap& transMap = this->transformationMapping_[0]; 
     34  TransformationWeightMap& transWeight = this->transformationWeight_[0]; 
    3735 
    3836  int globalIndexSize = axisDestGlobalIndex_.size(); 
     
    6967  CTransformationMapping transformationMap(axisDest_, axisSrc_); 
    7068 
    71   std::map<int, std::vector<int> >& transMap = this->transformationMapping_[0]; 
    72   std::map<int, std::vector<double> >& transWeight = this->transformationWeight_[0]; 
     69  TransformationIndexMap& transMap = this->transformationMapping_[0]; 
     70  TransformationWeightMap& transWeight = this->transformationWeight_[0]; 
    7371 
    7472  CTransformationMapping::DestinationIndexMap globaIndexMapFromDestToSource; 
    75   std::map<int, std::vector<int> >::const_iterator it = transMap.begin(), ite = transMap.end(); 
     73  TransformationIndexMap::const_iterator it = transMap.begin(), ite = transMap.end(); 
    7674  int localIndex = 0; 
    7775  for (; it != ite; ++it) 
Note: See TracChangeset for help on using the changeset viewer.