Changeset 1250 for XIOS/dev/XIOS_DEV_CMIP6/src/distribution_client.cpp
- Timestamp:
- 09/01/17 13:39:53 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/XIOS_DEV_CMIP6/src/distribution_client.cpp
r1158 r1250 478 478 localDataIndex_.resize(indexLocalDataOnClientCount); 479 479 localMaskIndex_.resize(indexSend2ServerCount); 480 localMaskedDataIndex_.resize(indexSend2ServerCount); 480 481 globalDataIndex_.rehash(std::ceil(indexLocalDataOnClientCount/globalDataIndex_.max_load_factor())); //globalLocalDataSendToServerMap_.reserve(indexSend2ServerCount); 481 482 globalLocalDataSendToServerMap_.rehash(std::ceil(indexSend2ServerCount/globalLocalDataSendToServerMap_.max_load_factor())); //globalLocalDataSendToServerMap_.reserve(indexSend2ServerCount); … … 561 562 globalLocalDataSendToServerMap_[globalIndex] = indexLocalDataOnClientCount; 562 563 localMaskIndex_[indexSend2ServerCount] = gridMaskIndex; 564 localMaskedDataIndex_[indexSend2ServerCount] = indexLocalDataOnClientCount; 563 565 ++indexSend2ServerCount; 564 566 } … … 653 655 } 654 656 657 /*! 658 Return local mask index of client 659 */ 660 const std::vector<int>& CDistributionClient::getLocalMaskedDataIndexOnClient() 661 { 662 if (!isComputed_) createGlobalIndexSendToServer(); 663 return localMaskedDataIndex_; 664 } 665 655 666 } // namespace xios
Note: See TracChangeset
for help on using the changeset viewer.