Ignore:
Timestamp:
02/11/15 16:23:07 (9 years ago)
Author:
mhnguyen
Message:

Doing some cleans and improving a little bit performance of creating local index on server

+) Add some comments, add some initialization
+) Change the way to calculate local index on server

Test
+) On Curie

File:
1 edited

Legend:

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

    r551 r552  
    6565    std::vector<CArray<size_t,1>* > computeServerBandDistribution(int nServer); 
    6666  private: 
    67     CArray<int,1>* localDataIndex_; //!< LocalData index on client 
    68     CArray<size_t,1>* globalIndex_; //!< Global index on client 
     67    //!< LocalData index on client 
     68    CArray<int,1>* localDataIndex_; 
    6969 
     70    //! Index of the local data which will be sent to the corresponding server(s) 
     71    std::map<int, std::vector<int> >  localIndexSend2Server_; 
     72 
     73    //! Global index of data on SERVER, which are calculated by client(s) 
    7074    std::map<int, std::vector<size_t> > indexGlobalOnServer_; 
    71     std::map<int, std::vector<int> >  localIndexSend2Server_; 
    7275  private: 
    7376    /*! Domains and axis are considered elements. 
     
    7578    int numElement_; 
    7679    CArray<bool,1> axisDomainOrder_; //!< 
    77  
    7880 
    7981    std::vector<int> nLocal_; //!< Local size of each dimension (ni, nj, etc, ...) 
Note: See TracChangeset for help on using the changeset viewer.