Changeset 1960 for XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution
- Timestamp:
- 10/12/20 11:23:54 (4 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/grid_elements.cpp
r1918 r1960 12 12 } 13 13 14 CGridLocalConnector* CGridLocalElements::getConnector(CElementView::type srcType, CElementView::type dstType )14 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 )) ;20 auto insertPair=pair<pair<CElementView::type,CElementView::type>, CGridLocalConnector*>(newPair,new CGridLocalConnector(this, srcType, dstType, withMask)) ; 21 21 it=connectors_.insert(insertPair).first ; 22 22 } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/grid_elements.hpp
r1918 r1960 28 28 std::vector<CLocalElement*>& getElements(void) { return elements_ ; } 29 29 CGridLocalView* getView(CElementView::type type) ; 30 CGridLocalConnector* getConnector(CElementView::type srcType, CElementView::type dstType ) ;30 CGridLocalConnector* getConnector(CElementView::type srcType, CElementView::type dstType, bool withMask=false) ; 31 31 } ; 32 32 } -
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/grid_local_connector.cpp
r1918 r1960 16 16 } 17 17 18 CGridLocalConnector::CGridLocalConnector(CGridLocalElements* parent, CElementView::type srcType, CElementView::type dstType )18 CGridLocalConnector::CGridLocalConnector(CGridLocalElements* parent, CElementView::type srcType, CElementView::type dstType, bool withMask) 19 19 { 20 20 CGridLocalView* srcView=parent->getView(srcType) ; … … 31 31 for(auto connector : elementsConnector_) dstSize_*=connector->getDstSize() ; 32 32 33 if (parent->hasLocalMask() )33 if (parent->hasLocalMask() && withMask) 34 34 { 35 35 vector<CLocalConnector*> elementsConnector ; -
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/grid_local_connector.hpp
r1918 r1960 25 25 26 26 CGridLocalConnector(const std::vector<CLocalConnector*>& elementsConnector) ; 27 CGridLocalConnector(CGridLocalElements* parent, CElementView::type srcType, CElementView::type dstType ) ;27 CGridLocalConnector(CGridLocalElements* parent, CElementView::type srcType, CElementView::type dstType, bool withMask=false) ; 28 28 int getSrcSize(void) { return srcSize_ ;} 29 29 int getDstSize(void) { return dstSize_ ;}
Note: See TracChangeset
for help on using the changeset viewer.