Changeset 892


Ignore:
Timestamp:
07/05/16 15:59:29 (8 years ago)
Author:
mhnguyen
Message:

Adding new class to auto-generate global index based on DHT

Test
+ NO

Location:
XIOS/trunk/src
Files:
2 added
2 edited

Legend:

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

    r869 r892  
    5555 
    5656  protected: 
     57    CClientClientDHTTemplate(const MPI_Comm& clientIntraComm); 
     58 
     59  protected: 
     60 
     61 
    5762    // Redistribute index and info among clients 
    5863    void computeDistributedIndex(const Index2InfoTypeMap& indexInfoInitMap, 
  • XIOS/trunk/src/client_client_dht_template_impl.hpp

    r867 r892  
    1313namespace xios 
    1414{ 
     15template<typename T, typename H> 
     16CClientClientDHTTemplate<T,H>::CClientClientDHTTemplate(const MPI_Comm& clientIntraComm) 
     17  : H(clientIntraComm), index2InfoMapping_(), indexToInfoMappingLevel_(), nbClient_(0) 
     18{ 
     19  MPI_Comm_size(clientIntraComm, &nbClient_); 
     20  this->computeMPICommLevel(); 
     21  int nbLvl = this->getNbLevel(); 
     22  sendRank_.resize(nbLvl); 
     23  recvRank_.resize(nbLvl); 
     24} 
     25 
    1526/*! 
    1627  Constructor with initial distribution information and the corresponding index 
Note: See TracChangeset for help on using the changeset viewer.