Last change
on this file since 2338 was
1918,
checked in by ymipsl, 4 years ago
|
Big update on on going work related to data distribution and transfer between clients and servers.
- move all related file into distribution directorie
- implement the concept of data "View"
- implement the concept of "connector" which make the data transfer between 2 differents "Views"
YM
|
File size:
1013 bytes
|
Rev | Line | |
---|
[1918] | 1 | /*! |
---|
| 2 | \file dht_auto_indexing.hpp |
---|
| 3 | \author Ha NGUYEN |
---|
| 4 | \since 6 Jul 2016 |
---|
| 5 | \date 6 Jul 2016 |
---|
| 6 | |
---|
| 7 | \brief Auto assign global index across processes. |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #ifndef __XIOS_DHT_AUTO_INDEXING_HPP__ |
---|
| 11 | #define __XIOS_DHT_AUTO_INDEXING_HPP__ |
---|
| 12 | |
---|
| 13 | #include "client_client_dht_template.hpp" |
---|
| 14 | |
---|
| 15 | namespace xios |
---|
| 16 | { |
---|
| 17 | |
---|
| 18 | /*! |
---|
| 19 | \class CDHTAutoIndexing |
---|
| 20 | . |
---|
| 21 | */ |
---|
| 22 | class CDHTAutoIndexing: public CClientClientDHTTemplate<size_t> |
---|
| 23 | { |
---|
| 24 | public: |
---|
| 25 | |
---|
| 26 | CDHTAutoIndexing(const CArray<size_t,1>& hashValue, |
---|
| 27 | const MPI_Comm& clientIntraComm); |
---|
| 28 | |
---|
| 29 | CDHTAutoIndexing(Index2VectorInfoTypeMap& hashInitMap, |
---|
| 30 | const MPI_Comm& clientIntraComm); |
---|
| 31 | |
---|
| 32 | size_t getNbIndexesGlobal() const; |
---|
| 33 | size_t getIndexStart() const; |
---|
| 34 | size_t getIndexCount() const; |
---|
| 35 | |
---|
| 36 | /** Default destructor */ |
---|
| 37 | virtual ~CDHTAutoIndexing(); |
---|
| 38 | |
---|
| 39 | protected: |
---|
| 40 | std::vector<size_t> globalIndex_; |
---|
| 41 | size_t nbIndexesGlobal_; |
---|
| 42 | size_t nbIndexOnProc_ ; |
---|
| 43 | size_t beginIndexOnProc_ ; |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | } // namespace xios |
---|
| 47 | #endif // __XIOS_DHT_AUTO_INDEXING_HPP__ |
---|
Note: See
TracBrowser
for help on using the repository browser.