|
dune-multidomaingrid 2.10-git
|
Loading...
Searching...
No Matches
multidomainmcmgmapper.hh
Go to the documentation of this file.
33 std::array<std::vector<IndexType>,GV::Grid::maxSubDomainIndex()> _offsets; // provide a map with all geometry types
129 return gridView().indexSet().index(subDomain,e) + _offsets[subDomain][GlobalGeometryTypeIndex::index(e.type())];
139 int map (SubDomainIndex subDomain, const typename GV::template Codim<0>::Entity& e, int i, unsigned int codim) const
187 bool contains (SubDomainIndex subDomain, const typename GV::template Codim<0>::Entity& e, int i, IndexType& result) const
std::array< std::vector< IndexType >, GV::Grid::maxSubDomainIndex()> _offsets
Definition multidomainmcmgmapper.hh:33
bool setContains(const ArrayBasedSet< SI, capacity > &a, const ArrayBasedSet< SI, capacity > &b)
static constexpr std::size_t index(const GeometryType >)
static constexpr std::size_t size(std::size_t maxdim)
Implementation class for a multiple codim and multiple geometry type mapper.
Definition multidomainmcmgmapper.hh:88
int size(SubDomainIndex subDomain) const
Return total number of entities in the entity set managed by the mapper.
Definition multidomainmcmgmapper.hh:156
GV::Grid::SubDomainIndex SubDomainIndex
Definition multidomainmcmgmapper.hh:99
void update(const GV &gv)
Recalculates indices after grid adaptation.
Definition multidomainmcmgmapper.hh:207
bool contains(SubDomainIndex subDomain, const EntityType &e, IndexType &result) const
Returns true if the entity is contained in the index set.
Definition multidomainmcmgmapper.hh:168
int map(SubDomainIndex subDomain, const typename GV::template Codim< 0 >::Entity &e, int i, unsigned int codim) const
Map subentity of codim 0 entity to array index.
Definition multidomainmcmgmapper.hh:139
GV::IndexSet::IndexType IndexType
Definition multidomainmcmgmapper.hh:98
int map(SubDomainIndex subDomain, const EntityType &e) const
Map entity to array index.
Definition multidomainmcmgmapper.hh:127
MultiDomainMCMGMapper(const GV &gv, const MCMGLayout &layout)
Definition multidomainmcmgmapper.hh:101
bool contains(SubDomainIndex subDomain, const typename GV::template Codim< 0 >::Entity &e, int i, IndexType &result) const
Returns true if the entity is contained in the index set.
Definition multidomainmcmgmapper.hh:187
MultiDomainMCMGMapper(const GV &gv)
Construct mapper from grid and one of its index sets.
Definition multidomainmcmgmapper.hh:113
const GridView & gridView() const
const MCMGLayout & layout() const
T back(T... args)
T fill(T... args)
T partial_sum(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8