Ignore:
Timestamp:
08/24/15 14:53:36 (9 years ago)
Author:
mhnguyen
Message:

Implementing some code factoring

+) Replace some slow searching function by faster ones

Test
+) On Curie
+) test_client and test_complete are correct

File:
1 edited

Legend:

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

    r664 r668  
    3636    virtual ~CDistributionClient(); 
    3737 
    38     virtual const CArray<int,1>& getLocalDataIndexOnClient() const; 
    39     virtual const CArray<int,1>& getLocalDataIndexSendToServer() const; 
    40     const CArray<size_t,1>& getGlobalDataIndexSendToServer() const; 
    41     const CArray<int,1>& getLocalMaskIndexOnClient() const; 
     38    virtual const std::vector<int>& getLocalDataIndexOnClient() const; 
     39    virtual const std::vector<int>& getLocalDataIndexSendToServer() const; 
     40    const std::vector<size_t>& getGlobalDataIndexSendToServer() const; 
     41    const std::vector<int>& getLocalMaskIndexOnClient() const; 
    4242 
    4343    std::vector<int> getNGlob() { return nGlob_; } 
     
    7272  private: 
    7373    //!< LocalData index on client 
    74     CArray<size_t,1> globalDataSendToServer_; 
    75     CArray<int,1> localDataIndex_; 
    76     CArray<int,1> localDataIndexSendToServer_; 
    77     CArray<int,1> localMaskIndex_; 
     74    std::vector<size_t> globalDataSendToServer_; 
     75    std::vector<int> localDataIndex_; 
     76    std::vector<int> localDataIndexSendToServer_; 
     77    std::vector<int> localMaskIndex_; 
    7878 
    7979  private: 
Note: See TracChangeset for help on using the changeset viewer.