Changeset 815 for XIOS/trunk/src/server_distribution_description.hpp
- Timestamp:
- 01/26/16 18:18:58 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/server_distribution_description.hpp
r657 r815 3 3 \author Ha NGUYEN 4 4 \since 04 Jan 2015 5 \date 24 Jul 20155 \date 11 Jan 2016 6 6 7 7 \brief Description of index distribution on server(s). … … 30 30 31 31 /** Default constructor */ 32 CServerDistributionDescription(const std::vector<int>& globalDimensionSize); 32 CServerDistributionDescription(const std::vector<int>& globalDimensionSize, 33 int nServer, 34 ServerDistributionType serType=BAND_DISTRIBUTION); 35 33 36 /** Default destructor */ 34 37 virtual ~CServerDistributionDescription(); 35 38 36 void computeServerDistribution(int nServer, int positionDimensionDistributed = 1, 37 bool doComputeGlobalIndex = false, 38 ServerDistributionType type = BAND_DISTRIBUTION); 39 40 void computeServerGlobalIndexInRange(int nServer, 41 const std::pair<size_t, size_t>& indexBeginEnd, 42 int positionDimensionDistributed = 1, 43 ServerDistributionType = BAND_DISTRIBUTION); 39 void computeServerDistribution(bool doComputeGlobalIndex = false, int positionDimensionDistributed = 1); 40 void computeServerGlobalIndexInRange(const std::pair<size_t, size_t>& indexBeginEnd, int positionDimensionDistributed = 1); 44 41 45 42 std::vector<std::vector<int> > getServerIndexBegin() const; … … 47 44 const std::vector<CArray<size_t,1> >& getGlobalIndex() const; 48 45 const boost::unordered_map<size_t,int>& getGlobalIndexRange() const; 46 int getDimensionDistributed(); 49 47 50 48 protected: … … 62 60 //!< In case we need only global index of one server with specific rank 63 61 boost::unordered_map<size_t,int> globalIndex_; 62 63 //!< Type of distribution on server side 64 ServerDistributionType serverType_; 65 66 //!< Number of server 67 int nServer_; 68 69 //!< Position of dimension distributed on server side (by default, the second dimension) 70 int positionDimensionDistributed_; 64 71 }; 65 72
Note: See TracChangeset
for help on using the changeset viewer.