source: XIOS/trunk/src/node/distribution_server.hpp @ 551

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

Redesigning grid structure

+) Add an intermediate class to calculate distribution on client and servers
+) Change all index of attributes to zero (0), instead of one(1)

Test
+) On Curie
+) Test new features passes but some data are still shifted

File size: 706 bytes
Line 
1#ifndef __XIOS_DISTRIBUTION_SERVER_HPP__
2#define __XIOS_DISTRIBUTION_SERVER_HPP__
3
4#include "distribution.hpp"
5
6namespace xios {
7class CDistributionServer : public CDistribution
8{
9  public:
10    /** Default constructor */
11    CDistributionServer(int rank, int dims, int nServer, CArray<size_t,1>* globalIndex = 0);
12    CDistributionServer(int rank, int nServer, const std::vector<int>& nGlobal);
13
14    /** Default destructor */
15    virtual ~CDistributionServer();
16
17  protected:
18    virtual void createGlobalIndex();
19
20    //! Read info
21    void readDistributionInfo(const std::vector<int>& nGlobal);
22  private:
23    int nServer_;
24    std::vector<int> nGlobal_;
25};
26
27}
28#endif // __XIOS_DISTRIBUTION_SERVER_HPP__
Note: See TracBrowser for help on using the repository browser.