Ignore:
Timestamp:
04/01/15 17:52:53 (9 years ago)
Author:
mhnguyen
Message:

Implementing new hash algorithm and fixing bug related to zoom

+) Replace boost hash with hash algorithm of Jenkins
+) Domain, if an attribute is non-empty for one client, it should also be non-empty for others inspite of zoom
+) Replace the way to find the number of client connecting to a server to make sure every server receive a message

Test
+) On Curie
+) test_client: passed and results are same like before
+) test_complete: passed, results are partially the same, the different part comes from added working operation

File:
1 edited

Legend:

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

    r569 r584  
    3737 
    3838    virtual const CArray<int,1>& getLocalDataIndexOnClient() const; 
    39     virtual const CArray<int,1>& getLocalDataIndexSendToServerOnClient() const; 
     39    virtual const CArray<int,1>& getLocalDataIndexSendToServer() const; 
     40    const CArray<size_t,1>& getGlobalDataIndexSendToServer() const; 
    4041 
    4142    std::vector<int> getNGlob() { return nGlob_; } 
     
    4546  protected: 
    4647    void createGlobalIndex(); 
     48    void createGlobalIndexSendToServer(); 
    4749    void readDistributionInfo(CGrid* grid); 
    4850    void readDistributionInfo(const std::vector<CDomain*>& domList, 
    4951                              const std::vector<CAxis*>& axisList, 
    5052                              const CArray<bool,1>& axisDomainOrder); 
     53    void readDomainIndex(const std::vector<CDomain*>& domList); 
     54    void readAxisIndex(const std::vector<CAxis*>& axisList); 
    5155  private: 
    5256    //! Create local index of a domain 
     
    6670  private: 
    6771    //!< LocalData index on client 
     72    CArray<size_t,1>* globalDataSendToServer_; 
    6873    CArray<int,1>* localDataIndex_; 
    6974    CArray<int,1>* localDataIndexSendToServer_; 
     
    8186    std::vector<int> nZoomBegin_; //!< Begin index of zoom of each dimension 
    8287    std::vector<int> nZoomEnd_; //!< End index of zoom of each dimension 
     88    std::vector<std::vector<CArray<int,2> > > nIndexDomain_; //!< Local index of each domain dimension (e.x: i_index, j_index) 
     89    std::vector<CArray<int,1> > nIndexAxis_; 
    8390 
    8491    // Data_n_index of domain or axis (For now, axis uses its size as data_n_index 
Note: See TracChangeset for help on using the changeset viewer.