Ignore:
Timestamp:
09/10/20 13:51:02 (4 years ago)
Author:
ymipsl
Message:

Big update on on going work related to data distribution and transfer between clients and servers.
Revisite of the source and store filter using "connectors".

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/local_view.hpp

    r1918 r1930  
    1717    public: 
    1818    CLocalView(CLocalElement* parent, CElementView::type type, const CArray<int,1>& indexView) ; 
     19    CLocalView(CLocalElement* parent, CElementView::type type, const CArray<bool,1>& maskView) ; 
     20 
    1921    const CArray<int,1>& getIndex(void) { return index_ ;} 
    2022    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    }     
    2138 
    2239    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.