source: XIOS/trunk/src/distribution.hpp @ 552

Last change on this file since 552 was 552, checked in by mhnguyen, 9 years ago

Doing some cleans and improving a little bit performance of creating local index on server

+) Add some comments, add some initialization
+) Change the way to calculate local index on server

Test
+) On Curie

File size: 597 bytes
Line 
1#ifndef __XIOS_DISTRIBUTION_HPP__
2#define __XIOS_DISTRIBUTION_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "array_new.hpp"
6
7namespace xios {
8class CDistribution
9{
10  public:
11    /** Default constructor */
12    CDistribution(int rank, int dims, CArray<size_t,1>* globalIndex = 0);
13
14    /** Default destructor */
15    virtual ~CDistribution();
16
17    int getDims() const;
18    int getRank() const;
19  protected:
20    virtual void createGlobalIndex() = 0;
21  protected:
22    CArray<size_t,1>* globalIndex_;
23    int dims_;
24    int rank_;
25  private:
26};
27
28} // namespace xios
29#endif // __XIOS_DISTRIBUTION_HPP__
Note: See TracBrowser for help on using the repository browser.