Ignore:
Timestamp:
06/09/16 11:33:08 (8 years ago)
Author:
mhnguyen
Message:

Optimizing codes: Change the way to compute distribution of grid

+) Instead of using DHT on grid, we make use of it only for elements of grid
+) Make change to calculation of server distribution.

Test
+) On Curie
+) Two times faster than the precedent commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/grid.hpp

    r835 r865  
    242242 
    243243        void checkAttributesAfterTransformation(); 
    244  
    245  
    246244        void setTransformationAlgorithms(); 
    247  
     245        void computeIndexByElement(const std::vector<boost::unordered_map<size_t,std::vector<int> > >& indexServerOnElement, 
     246                                   CClientServerMapping::GlobalIndexMap& globalIndexOnServer); 
    248247 
    249248 
     
    274273        std::map<CGrid*, std::pair<bool,StdString> > gridSrc_; 
    275274        bool hasTransform_; 
     275        CClientServerMapping::GlobalIndexMap globalIndexOnServer_; 
    276276            // List order of axis and domain in a grid, if there is a domain, it will take value 1 (true), axis 0 (false) 
    277277        std::vector<bool> order_; 
Note: See TracChangeset for help on using the changeset viewer.