Changeset 1637 for XIOS/trunk/src/transformation/grid_transformation.cpp
- Timestamp:
- 01/14/19 13:33:48 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/transformation/grid_transformation.cpp
r1622 r1637 359 359 std::list<RecvIndexGridDestinationMap>().swap(localIndexToReceiveOnGridDest_); 360 360 std::list<size_t>().swap(nbLocalIndexOnGridDest_); 361 std::list<std::vector<bool> >().swap(localMaskOnGridDest_);362 361 } 363 362 else … … 412 411 vector<int> localDst ; 413 412 vector<double> weight ; 414 localMaskOnGridDest_.push_back(vector<bool>());413 int nbLocalIndexOnGridDest; 415 414 CTimer::get("computeTransformationMappingNonDistributed").resume(); 416 415 algo->computeTransformationMappingNonDistributed(elementPosition, gridSource_, tmpGridDestination_, 417 localSrc, localDst, weight, localMaskOnGridDest_.back()) ;416 localSrc, localDst, weight, nbLocalIndexOnGridDest) ; 418 417 CTimer::get("computeTransformationMappingNonDistributed").suspend(); 419 418 420 419 CTimer::get("computeTransformationMappingConvert").resume(); 421 nbLocalIndexOnGridDest_.push_back( localMaskOnGridDest_.back().size()) ;420 nbLocalIndexOnGridDest_.push_back(nbLocalIndexOnGridDest) ; 422 421 int clientRank=client->clientRank ; 423 422 { … … 487 486 size_t nbLocalIndex = globalLocalIndexGridDestSendToServer.size(); 488 487 nbLocalIndexOnGridDest_.push_back(nbLocalIndex); 489 localMaskOnGridDest_.push_back(std::vector<bool>());490 std::vector<bool>& tmpMask = localMaskOnGridDest_.back();491 tmpMask.resize(nbLocalIndex,false);488 // localMaskOnGridDest_.push_back(std::vector<bool>()); 489 // std::vector<bool>& tmpMask = localMaskOnGridDest_.back(); 490 // tmpMask.resize(nbLocalIndex,false); 492 491 493 492 // Find out number of index sent from grid source and number of index received on grid destination … … 672 671 recvTmp[recvRank][realRecvSize].first = globalLocalIndexGridDestSendToServer[recvIndexDst(idx)]; 673 672 recvTmp[recvRank][realRecvSize].second = recvWeightDst(idx); 674 tmpMask[globalLocalIndexGridDestSendToServer[recvIndexDst(idx)]] = true;675 673 ++realRecvSize; 676 674 } … … 732 730 CATCH 733 731 734 /*! 735 Local mask of data which will be received on the grid destination 736 \return local mask of data 737 */ 738 const std::list<std::vector<bool> >& CGridTransformation::getLocalMaskIndexOnGridDest() const 739 TRY 740 { 741 return localMaskOnGridDest_; 742 } 743 CATCH 744 745 } 732 }
Note: See TracChangeset
for help on using the changeset viewer.