#include "transfer_transform_connector.hpp" namespace xios { CTransferTransformConnector::CTransferTransformConnector(shared_ptr srcView, shared_ptr dstView, unordered_map& indexMap) : srcView_(srcView), dstView_(dstView) { computeConnector(indexMap) ; } void CTransferTransformConnector::computeConnector(unordered_map& indexMap) { CArray dstGlobalIndex ; CArray srcGlobalIndex ; dstView_->getGlobalIndexView(dstGlobalIndex) ; srcView_->getGlobalIndexView(srcGlobalIndex) ; unordered_map srcMapIndex ; srcSize_ = srcGlobalIndex.numElements() ; dstSize_ = dstGlobalIndex.numElements() ; mask_.resize(dstSize_) ; for(int i=0;i