- Timestamp:
- 12/01/21 16:52:24 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/transform_connector.cpp
r1984 r2267 56 56 57 57 // distributed element : where to send data 58 CDistributedElement dstElement(srcView_->getGlobalSize(), dstArrayIndex) ;59 dstElement .addFullView() ;58 auto dstElement = make_shared<CDistributedElement>(srcView_->getGlobalSize(), dstArrayIndex) ; 59 dstElement->addFullView() ; 60 60 61 61 // create scatterer connector 62 62 int commSize ; 63 63 MPI_Comm_size(localComm_, &commSize) ; 64 scattererConnector_ = new CScattererConnector(srcView_, dstElement.getView(CElementView::FULL), localComm_, commSize ) ;64 scattererConnector_ = make_shared<CScattererConnector>(srcView_, dstElement->getView(CElementView::FULL), localComm_, commSize ) ; 65 65 scattererConnector_->computeConnector() ; 66 66 … … 98 98 MPI_Waitall(sendReq.size(),sendReq.data(),sendStatus.data()) ; 99 99 100 CDistributedElement remoteElement(dstView_->getGlobalSize(), remoteArrayIndex) ;101 remoteElement .addFullView() ;102 gathererConnector_= new CGathererConnector(remoteElement.getView(CElementView::FULL),dstView_) ;100 auto remoteElement = make_shared<CDistributedElement>(dstView_->getGlobalSize(), remoteArrayIndex) ; 101 remoteElement->addFullView() ; 102 gathererConnector_= make_shared<CGathererConnector>(remoteElement->getView(CElementView::FULL),dstView_) ; 103 103 gathererConnector_->computeConnector() ; 104 104
Note: See TracChangeset
for help on using the changeset viewer.