source: XIOS/dev/dev_olga/src/dht_auto_indexing.hpp @ 1201

Last change on this file since 1201 was 924, checked in by oabramkina, 8 years ago

Parallel version of UGRID norms.

The following connectivity parameters have been implemented:

edge_nodes
face_nodes
face_edges
edge_faces
face_faces.

Test with a regular(structured) quadrilateral mesh (test_regular) has been added.

File size: 1013 bytes
Line 
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
15namespace xios
16{
17
18/*!
19  \class CDHTAutoIndexing
20  .
21*/
22class 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.