- Timestamp:
- 09/10/20 13:51:02 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/local_view.hpp
r1918 r1930 17 17 public: 18 18 CLocalView(CLocalElement* parent, CElementView::type type, const CArray<int,1>& indexView) ; 19 CLocalView(CLocalElement* parent, CElementView::type type, const CArray<bool,1>& maskView) ; 20 19 21 const CArray<int,1>& getIndex(void) { return index_ ;} 20 22 const CArray<size_t,1>& getGlobalIndex(void) { return globalIndex_ ;} 23 24 void getGlobalIndexView(CArray<size_t,1>& globalIndexView) 25 { 26 globalIndexView.resize(size_) ; 27 int pos=0 ; 28 for(int i=0 ; i<size_ ; i++) 29 { 30 if (index_(i)>=0 && index_(i)<localSize_) 31 { 32 globalIndexView(i) = globalIndex_(index_(i)) ; 33 pos++ ; 34 } 35 } 36 globalIndexView.resizeAndPreserve(pos) ; 37 } 21 38 22 39 void getGlobalIndex(vector<size_t>& globalIndex, size_t sliceIndex, size_t* sliceSize, CLocalView** localView, int pos)
Note: See TracChangeset
for help on using the changeset viewer.