source: XIOS/dev/dev_trunk_graph/src/distribution/grid_local_view.cpp @ 2019

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

Graph intermedia commit to a tmp branch

  • Property svn:executable set to *
File size: 387 bytes
Line 
1#include "grid_local_view.hpp"
2#include "grid_elements.hpp"
3
4namespace xios
5{
6  CGridLocalView::CGridLocalView(CGridLocalElements* parent, CElementView::type type) : localMask_(parent->getLocalMask())
7  {
8    size_ = 1 ;
9    for(auto element : parent->getElements()) 
10    {
11      views_.push_back(element->getView(type)) ;
12      size_ *= element->getView(type)->getSize() ;
13    }
14
15  }
16
17}
Note: See TracBrowser for help on using the repository browser.