Ignore:
Timestamp:
10/12/18 16:02:37 (6 years ago)
Author:
oabramkina
Message:

Clean-up in transformation classes related to the new treatment of grid mask at the entrance of a workflow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/transformation/grid_transformation.cpp

    r1542 r1584  
    346346      std::list<RecvIndexGridDestinationMap>().swap(localIndexToReceiveOnGridDest_); 
    347347      std::list<size_t>().swap(nbLocalIndexOnGridDest_); 
    348       std::list<std::vector<bool> >().swap(localMaskOnGridDest_); 
     348//      std::list<std::vector<bool> >().swap(localMaskOnGridDest_); 
    349349    } 
    350350    else 
     
    399399        vector<int> localDst ; 
    400400        vector<double> weight ; 
    401         localMaskOnGridDest_.push_back(vector<bool>()) ; 
     401        int nbLocalIndexOnGridDest; 
     402//        localMaskOnGridDest_.push_back(vector<bool>()) ; 
    402403        CTimer::get("computeTransformationMappingNonDistributed").resume();   
     404//        algo->computeTransformationMappingNonDistributed(elementPosition, gridSource_, tmpGridDestination_, 
     405//                                                         localSrc, localDst, weight, localMaskOnGridDest_.back()) ; 
    403406        algo->computeTransformationMappingNonDistributed(elementPosition, gridSource_, tmpGridDestination_,  
    404                                                          localSrc, localDst, weight, localMaskOnGridDest_.back()) ; 
     407                                                         localSrc, localDst, weight, nbLocalIndexOnGridDest) ; 
    405408        CTimer::get("computeTransformationMappingNonDistributed").suspend();   
    406409 
    407410        CTimer::get("computeTransformationMappingConvert").resume();   
    408         nbLocalIndexOnGridDest_.push_back(localMaskOnGridDest_.back().size()) ; 
     411//        nbLocalIndexOnGridDest_.push_back(localMaskOnGridDest_.back().size()) ; 
     412//        nbLocalIndexOnGridDest_.push_back(localMaskOnGridDest_.back().size()) ; 
     413        nbLocalIndexOnGridDest_.push_back(nbLocalIndexOnGridDest) ; 
    409414        int clientRank=client->clientRank ; 
    410415        { 
     
    472477  size_t nbLocalIndex = globalLocalIndexGridDestSendToServer.size(); 
    473478  nbLocalIndexOnGridDest_.push_back(nbLocalIndex); 
    474   localMaskOnGridDest_.push_back(std::vector<bool>()); 
    475   std::vector<bool>& tmpMask = localMaskOnGridDest_.back(); 
    476   tmpMask.resize(nbLocalIndex,false); 
     479//  localMaskOnGridDest_.push_back(std::vector<bool>()); 
     480//  std::vector<bool>& tmpMask = localMaskOnGridDest_.back(); 
     481//  tmpMask.resize(nbLocalIndex,false); 
    477482 
    478483  // Find out number of index sent from grid source and number of index received on grid destination 
     
    657662        recvTmp[recvRank][realRecvSize].first = globalLocalIndexGridDestSendToServer[recvIndexDst(idx)]; 
    658663        recvTmp[recvRank][realRecvSize].second = recvWeightDst(idx); 
    659         tmpMask[globalLocalIndexGridDestSendToServer[recvIndexDst(idx)]] = true; 
     664//        tmpMask[globalLocalIndexGridDestSendToServer[recvIndexDst(idx)]] = true; 
    660665         ++realRecvSize; 
    661666      } 
     
    714719  \return local mask of data 
    715720*/ 
    716 const std::list<std::vector<bool> >& CGridTransformation::getLocalMaskIndexOnGridDest() const 
    717 { 
    718   return localMaskOnGridDest_; 
    719 } 
    720  
    721 } 
     721//const std::list<std::vector<bool> >& CGridTransformation::getLocalMaskIndexOnGridDest() const 
     722//{ 
     723//  return localMaskOnGridDest_; 
     724//} 
     725 
     726} 
Note: See TracChangeset for help on using the changeset viewer.