Last change
on this file since 1960 was
1960,
checked in by ymipsl, 4 years ago
|
Bug fix when using grid masking. Grid local connector apply systematicalling grid masking need for data coming from model.
Add a flag to chose using masking or not.
YM
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
841 bytes
|
Rev | Line | |
---|
[1918] | 1 | #include "grid_elements.hpp" |
---|
| 2 | #include "grid_local_view.hpp" |
---|
| 3 | #include "grid_local_connector.hpp" |
---|
| 4 | |
---|
| 5 | namespace xios |
---|
| 6 | { |
---|
| 7 | |
---|
| 8 | CGridLocalView* CGridLocalElements::getView(CElementView::type type) |
---|
| 9 | { |
---|
| 10 | if (views_[type]==nullptr) views_[type] = new CGridLocalView(this, type) ; |
---|
| 11 | return views_[type] ; |
---|
| 12 | } |
---|
| 13 | |
---|
[1960] | 14 | CGridLocalConnector* CGridLocalElements::getConnector(CElementView::type srcType, CElementView::type dstType, bool withMask) |
---|
[1918] | 15 | { |
---|
| 16 | auto newPair = pair<CElementView::type,CElementView::type>(srcType,dstType); |
---|
| 17 | auto it = connectors_.find(newPair) ; |
---|
| 18 | if (it==connectors_.end()) |
---|
| 19 | { |
---|
[1960] | 20 | auto insertPair=pair<pair<CElementView::type,CElementView::type>, CGridLocalConnector*>(newPair,new CGridLocalConnector(this, srcType, dstType, withMask)) ; |
---|
[1918] | 21 | it=connectors_.insert(insertPair).first ; |
---|
| 22 | } |
---|
| 23 | return it->second ; |
---|
| 24 | } |
---|
| 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.