#include "gatherer_connector.hpp" namespace xios { void CGathererConnector::computeConnector(void) { dstSize_=dstView_->getSize() ; auto& srcGlobalIndex = srcView_->getGlobalIndex() ; auto& srcIndex = srcView_->getIndex() ; for(auto& rankIndex : srcIndex) srcSize_[rankIndex.first] = rankIndex.second.numElements(); auto& dstGlobalIndex = dstView_->getGlobalIndex() ; auto& dstIndex = dstView_->getIndex() ; dstSize_=dstIndex.numElements() ; unordered_map mapGlobalLocalIndex ; int globalIndexSize=dstGlobalIndex.size() ; //for(auto& ind : dstIndex) mapGlobalLocalIndex[dstGlobalIndex(ind)] = ind ; for(int i=0; i=0 && dstIndex(i)=0 && index(ind)second) ; mask.push_back(true) ; } else mask.push_back(false) ; } else mask.push_back(false) ; } } } }