Last change
on this file since 1918 was
1918,
checked in by ymipsl, 4 years ago
|
Big update on on going work related to data distribution and transfer between clients and servers.
- move all related file into distribution directorie
- implement the concept of data "View"
- implement the concept of "connector" which make the data transfer between 2 differents "Views"
YM
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
547 bytes
|
Line | |
---|
1 | #include "element_view.hpp" |
---|
2 | #include "element.hpp" |
---|
3 | #include "distributed_view.hpp" |
---|
4 | |
---|
5 | namespace xios |
---|
6 | { |
---|
7 | |
---|
8 | CDistributedView::CDistributedView(CDistributedElement* parent, CElementView::type, const std::map<int,CArray<int,1>>& indexView) |
---|
9 | : globalIndex_(parent->globalIndex_), globalSize_(parent->globalSize_), localSize_(parent->localSize_) |
---|
10 | { |
---|
11 | for(auto index : indexView) |
---|
12 | { |
---|
13 | index_[index.first].reference(index.second.copy()) ; |
---|
14 | size_[index.first] = index.second.numElements() ; |
---|
15 | } |
---|
16 | } |
---|
17 | |
---|
18 | |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.