Changeset 668 for XIOS/trunk/src/distribution_client.cpp
- Timestamp:
- 08/24/15 14:53:36 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/distribution_client.cpp
r666 r668 18 18 , gridMask_(), localDomainIndex_(), localAxisIndex_(), indexMap_(), indexDomainData_(), indexAxisData_() 19 19 , isDataDistributed_(true), axisNum_(0), domainNum_(0), nIndexDomain_(), nIndexAxis_() 20 , globalDataSendToServer_(), localDataIndexSendToServer_(), localDataIndex_(), localMaskIndex_() 20 21 { 21 22 } … … 28 29 , gridMask_(), localDomainIndex_(), localAxisIndex_(), indexMap_(), indexDomainData_(), indexAxisData_() 29 30 , isDataDistributed_(true), axisNum_(0), domainNum_(0), nIndexDomain_(), nIndexAxis_() 31 , globalDataSendToServer_(), localDataIndexSendToServer_(), localDataIndex_(), localMaskIndex_() 30 32 { 31 33 readDistributionInfo(grid); … … 568 570 gridMask_(gridMaskIndex)) 569 571 { 570 localDataIndex_ (indexLocalDataOnClientCount)= countLocalData;572 localDataIndex_[indexLocalDataOnClientCount] = countLocalData; 571 573 572 574 bool isIndexOnServer = true; … … 584 586 globalIndex += (currentIndex[k] + nBeginGlobal_[k])*mulDim; 585 587 } 586 globalDataSendToServer_ (indexSend2ServerCount)= globalIndex;587 localDataIndexSendToServer_ (indexSend2ServerCount)= indexLocalDataOnClientCount;588 localMaskIndex_ (indexSend2ServerCount)= gridMaskIndex;588 globalDataSendToServer_[indexSend2ServerCount] = globalIndex; 589 localDataIndexSendToServer_[indexSend2ServerCount] = indexLocalDataOnClientCount; 590 localMaskIndex_[indexSend2ServerCount] = gridMaskIndex; 589 591 ++indexSend2ServerCount; 590 592 } … … 639 641 } 640 642 641 const CArray<size_t,1>& CDistributionClient::getGlobalDataIndexSendToServer() const643 const std::vector<size_t>& CDistributionClient::getGlobalDataIndexSendToServer() const 642 644 { 643 645 return globalDataSendToServer_; … … 647 649 Return local data index of client 648 650 */ 649 const CArray<int,1>& CDistributionClient::getLocalDataIndexOnClient() const651 const std::vector<int>& CDistributionClient::getLocalDataIndexOnClient() const 650 652 { 651 653 return localDataIndex_; … … 655 657 Return local mask index of client 656 658 */ 657 const CArray<int,1>& CDistributionClient::getLocalMaskIndexOnClient() const659 const std::vector<int>& CDistributionClient::getLocalMaskIndexOnClient() const 658 660 { 659 661 return localMaskIndex_; … … 663 665 Return local data index on client which are sent to servers 664 666 */ 665 const CArray<int,1>& CDistributionClient::getLocalDataIndexSendToServer() const667 const std::vector<int>& CDistributionClient::getLocalDataIndexSendToServer() const 666 668 { 667 669 return localDataIndexSendToServer_;
Note: See TracChangeset
for help on using the changeset viewer.