Ignore:
Timestamp:
03/23/16 16:11:09 (8 years ago)
Author:
mhnguyen
Message:

Cleaning up some redundant coeds and making some improvements

+) Remove some XIOS Search to make code run faster
+) Remove some commented codes

Test
+) On Curie
+) All tests pass

File:
1 edited

Legend:

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

    r818 r831  
    1414#include "domain.hpp" 
    1515#include "grid.hpp" 
     16#include <boost/unordered_map.hpp> 
    1617 
    1718namespace xios { 
     
    2829class CDistributionClient : public CDistribution 
    2930{ 
     31public: 
     32  typedef boost::unordered_map<size_t,int> GlobalLocalDataMap; 
     33 
    3034  public: 
    3135    /** Default constructor */ 
     
    3741 
    3842    virtual const std::vector<int>& getLocalDataIndexOnClient() const; 
    39     virtual const std::vector<int>& getLocalDataIndexSendToServer() const; 
    40     const std::vector<size_t>& getGlobalDataIndexSendToServer() const; 
     43    const GlobalLocalDataMap& getGlobalLocalDataSendToServer() const; 
    4144    const std::vector<int>& getLocalMaskIndexOnClient() const; 
    4245 
     
    7275  private: 
    7376    //!< LocalData index on client 
    74     std::vector<size_t> globalDataSendToServer_; 
     77    GlobalLocalDataMap globalLocalDataSendToServerMap_; 
    7578    std::vector<int> localDataIndex_; 
    76     std::vector<int> localDataIndexSendToServer_; 
    7779    std::vector<int> localMaskIndex_; 
    7880 
     
    164166} 
    165167 
    166  
    167168} // namespace xios 
    168169#endif // __XIOS_DISTRIBUTIONCLIENT_HPP__ 
Note: See TracChangeset for help on using the changeset viewer.