10 #ifndef __XIOS_DISTRIBUTION_SERVER_HPP__
11 #define __XIOS_DISTRIBUTION_SERVER_HPP__
27 const std::vector<int>& nSizeServer,
const std::vector<int>& nGlobal);
29 const std::vector<int>& nSizeServer,
30 const std::vector<int>& nBeginGlobal,
31 const std::vector<int>& nGlobal);
36 const std::vector<int>& nBeginServer,
37 const std::vector<int>& nSizeServer,
38 const std::vector<int>& nBeginGlobal,
39 const std::vector<int>& nGlobal);
68 #endif // __XIOS_DISTRIBUTION_SERVER_HPP__
std::vector< int > nSize_
GlobalLocalMap globalLocalIndexMap_
virtual void computeLocalIndex(CArray< size_t, 1 > &globalIndex)
Compute local index for writing data on server.
const GlobalLocalMap & getGlobalLocalIndex() const
The parent class of CDistributionClient and CDistributionServer, which declares and defines some basi...
virtual void partialClear(void)
std::vector< int > nBegin_
int getGridSize() const
Get the size of grid index in server (e.x: sizeGrid *= size of each dimensiion)
virtual void createGlobalIndex()
clear heavy sized attibutes
CDistributionServer(int rank, int dims, const CArray< size_t, 1 > &globalIndex=CArray< size_t, 1 >())
std::vector< int > nBeginGlobal_
std::vector< int > nGlobal_
Index distribution on server side.
virtual ~CDistributionServer()
std::unordered_map< size_t, int > GlobalLocalMap
virtual void computeGlobalIndex(CArray< int, 1 > &indexes) const
Transforms local indexes owned by the server into global indexes.
The class, for now, plays a role of computing local index for writing data on server.