- 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/grid_elements.cpp
r1960 r2267 6 6 { 7 7 8 CGridLocalView*CGridLocalElements::getView(CElementView::type type)8 shared_ptr<CGridLocalView> CGridLocalElements::getView(CElementView::type type) 9 9 { 10 if (views_[type]==nullptr) views_[type] = new CGridLocalView(this, type) ;10 if (views_[type]==nullptr) views_[type] = make_shared<CGridLocalView>(shared_from_this(), type) ; 11 11 return views_[type] ; 12 12 } 13 13 14 CGridLocalConnector*CGridLocalElements::getConnector(CElementView::type srcType, CElementView::type dstType, bool withMask)14 shared_ptr<CGridLocalConnector> CGridLocalElements::getConnector(CElementView::type srcType, CElementView::type dstType, bool withMask) 15 15 { 16 16 auto newPair = pair<CElementView::type,CElementView::type>(srcType,dstType); … … 18 18 if (it==connectors_.end()) 19 19 { 20 auto insertPair=pair<pair<CElementView::type,CElementView::type>, CGridLocalConnector*>(newPair,new CGridLocalConnector(this, srcType, dstType, withMask)) ;20 auto insertPair=pair<pair<CElementView::type,CElementView::type>, shared_ptr<CGridLocalConnector>>(newPair, make_shared<CGridLocalConnector>(shared_from_this(), srcType, dstType, withMask)) ; 21 21 it=connectors_.insert(insertPair).first ; 22 22 }
Note: See TracChangeset
for help on using the changeset viewer.