source: XIOS/dev/dev_trunk_graph/src/distribution/grid_mask_connector.cpp @ 2030

Last change on this file since 2030 was 2019, checked in by yushan, 3 years ago

Graph intermedia commit to a tmp branch

  • Property svn:executable set to *
File size: 471 bytes
Line 
1#include "grid_mask_connector.hpp"
2
3namespace xios
4{
5  void CGridMaskConnector::computeConnector(CArray<bool,1>& mask)
6  {
7    nViews_ = views_.size() ;
8    for(auto& view : views_) 
9    {
10      size_.push_back(view->getLocalSize()) ;
11      elementsMask_.push_back(CArray<bool,1>(view->getLocalSize())) ;
12      elementsMask_.back() = false ;
13    }
14    index_.resize(nViews_,0) ;
15    bool* maskPtr = mask.dataFirst() ; 
16    recursiveInternal(nViews_-1, maskPtr) ;
17  }
18 
19}
Note: See TracBrowser for help on using the repository browser.