Changeset 1960
- Timestamp:
- 10/12/20 11:23:54 (4 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src
- Files:
-
- 5 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_ ;} -
XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp
r1956 r1960 3388 3388 void CGrid::computeModelToWorkflowConnector(void) 3389 3389 { 3390 modelToWorkflowConnector_ = getGridLocalElements()->getConnector(CElementView::MODEL,CElementView::WORKFLOW ) ;3390 modelToWorkflowConnector_ = getGridLocalElements()->getConnector(CElementView::MODEL,CElementView::WORKFLOW,true) ; 3391 3391 } 3392 3392 … … 3398 3398 void CGrid::computeWorkflowToModelConnector(void) 3399 3399 { 3400 workflowToModelConnector_ = getGridLocalElements()->getConnector(CElementView::WORKFLOW,CElementView::MODEL ) ;3400 workflowToModelConnector_ = getGridLocalElements()->getConnector(CElementView::WORKFLOW,CElementView::MODEL,true) ; 3401 3401 } 3402 3402
Note: See TracChangeset
for help on using the changeset viewer.