Changeset 552 for XIOS/trunk/src/node/distribution_server.hpp
- Timestamp:
- 02/11/15 16:23:07 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/distribution_server.hpp
r551 r552 5 5 6 6 namespace xios { 7 /*! 8 \class CDistributionServer 9 The class, for now, plays a role of computing local index for writing data on server 10 */ 7 11 class CDistributionServer : public CDistribution 8 12 { 9 13 public: 10 14 /** 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); 15 CDistributionServer(int rank, int dims, CArray<size_t,1>* globalIndex = 0); 16 CDistributionServer(int rank, const std::vector<int>& nZoomBegin, 17 const std::vector<int>& nZoomSize, const std::vector<int>& nGlobal); 13 18 14 19 /** Default destructor */ 15 20 virtual ~CDistributionServer(); 16 21 22 CArray<size_t,1> computeLocalIndex(const CArray<size_t,1>& globalIndex); 23 void computeLocalIndex(CArray<size_t,1>& globalIndex); 24 17 25 protected: 18 26 virtual void createGlobalIndex(); 19 20 //! Read info21 void readDistributionInfo(const std::vector<int>& nGlobal);22 27 private: 23 int nServer_;24 28 std::vector<int> nGlobal_; 29 std::vector<int> nZoomSize_; 30 std::vector<int> nZoomBegin_; 25 31 }; 26 32 27 } 33 } // namespace xios 28 34 #endif // __XIOS_DISTRIBUTION_SERVER_HPP__
Note: See TracChangeset
for help on using the changeset viewer.