![]() |
Dune-Fufem 2.11-git
|
Loading...
Searching...
No Matches
elementdata.hh
Go to the documentation of this file.
85 ElementData(const Dune::GmshReader<Grid>& reader, const Dune::GridFactory<Grid>& factory, const GridView& gridView)
90 DUNE_THROW(Dune::InvalidStateException, "The GmshReader passed to ElementData has no stored element data.");
94 auto coarseMapper = Dune::MultipleCodimMultipleGeomTypeMapper(coarseGridView, Dune::mcmgElementLayout());
97 coarseData_[coarseMapper.index(coarseElement)] = rawElementData[factory.insertionIndex(coarseElement)];
115 ElementData(const Dune::GmshReader<Grid>& reader, const Dune::GridFactory<Grid>& factory, const Grid& grid)
208 auto coarseMapper = Dune::MultipleCodimMultipleGeomTypeMapper(coarseGridView, Dune::mcmgElementLayout());
224ElementData(const Dune::GmshReader<typename GridView::Grid>&, const Dune::GridFactory<typename GridView::Grid>&, const GridView&)
#define DUNE_THROW(E,...)
STL namespace.
Definition dunefunctionsboundaryfunctionalassembler.hh:29
Grid< dim, dimworld, ct, GridFamily >::LeafGridView leafGridView(const Grid< dim, dimworld, ct, GridFamily > &grid)
bool contains(const EntityType &e) const
MCMGLayout mcmgElementLayout()
LevelGridView levelGridView(int level) const
virtual unsigned int insertionIndex(const typename Codim< 0 >::Entity &entity) const
size_type size() const
Index index(const EntityType &e) const
const GridView & gridView() const
void update(const GV &gridView)
const std::vector< int > & elementData() const
bool hasElementData() const
std::size_t size() const
Size of the container (number of elements in grid view)
Definition elementdata.hh:170
const std::vector< T > & coarseData() const
Access raw container with stored level-0 coarse data.
Definition elementdata.hh:186
ElementData(std::vector< T > &&coarseData, const GridView &gridView)
Create ElementData.
Definition elementdata.hh:131
const T & operator[](std::size_t elementIndex) const
Access data by consecutive element index.
Definition elementdata.hh:162
typename GridView::template Codim< 0 >::Entity Element
Definition elementdata.hh:53
ElementData(const Dune::GmshReader< Grid > &reader, const Dune::GridFactory< Grid > &factory, const GridView &gridView)
Create ElementData.
Definition elementdata.hh:85
void update(const GridView &gridView)
Update after changes to the grid or GridView.
Definition elementdata.hh:145
Dune::MultipleCodimMultipleGeomTypeMapper< GridView > Mapper
Definition elementdata.hh:52
ElementData(const std::vector< T > &coarseData, const GridView &gridView)
Create ElementData.
Definition elementdata.hh:66
const T & operator()(const Element &element) const
Map element to associated data.
Definition elementdata.hh:154
const std::vector< T > & data() const
Access raw container with stored data.
Definition elementdata.hh:178
ElementData(const Dune::GmshReader< Grid > &reader, const Dune::GridFactory< Grid > &factory, const Grid &grid)
Create ElementData.
Definition elementdata.hh:115
T forward(T... args)
