|
dune-grid 2.12-git
|
Loading...
Searching...
No Matches
yaspgridentity.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
75 static constexpr std::array<int,(n+1)*(n+2)/2> _values = computeValues(std::make_index_sequence<(n+1)*(n+2)/2>{});
142 static constexpr std::array<unsigned char, sizeof...(I)> computeValues(std::index_sequence<I...>)
148 static constexpr std::array<int,dim+1> _offsets = computeOffsets(std::make_index_sequence<dim+1>{});
149 static constexpr std::array<unsigned char,Dune::power(3,dim)> _values = computeValues(std::make_index_sequence<Dune::power(3,dim)>{});
557 return typename Codim<cc>::Entity(YaspEntity<cc,GridImp::dimension,GridImp>(_g,_g->overlapfront[cc].begin(coord, which)));
618 bool isNew () const { return yaspgrid()->adaptRefCount > 0 && yaspgrid()->maxLevel() < _g->level() + yaspgrid()->adaptRefCount; }
int size() const
size_type dim() const
std::ptrdiff_t index() const
#define DUNE_THROW(E,...)
static constexpr T binomial(const T &n, const T &k) noexcept
constexpr Base power(Base m, Exponent p)
PartitionType
Attributes used in the generic overlap model.
Definition gridenums.hh:30
STL namespace.
Include standard header files.
Default Implementations for EntityImp.
Definition common/entity.hh:542
static constexpr int mydimension
geometry dimension
Definition common/geometry.hh:94
The general version that handles all codimensions but 0 and dim.
Definition yaspgridgeometry.hh:31
Definition yaspgridentity.hh:242
Geometry geometry() const
geometry of this entity
Definition yaspgridentity.hh:270
constexpr GeometryType type() const
Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
Definition yaspgridentity.hh:279
PersistentIndexType persistentIndex() const
globally unique, persistent index
Definition yaspgridentity.hh:333
const I & transformingsubiterator() const
Definition yaspgridentity.hh:393
bool equals(const YaspEntity &e) const
Return true when two iterators over the same grid are equal (!).
Definition yaspgridentity.hh:321
PartitionType partitionType() const
return partition type attribute
Definition yaspgridentity.hh:294
GridImp::Traits::template Codim< codim >::GeometryImpl GeometryImpl
Definition yaspgridentity.hh:251
int subCompressedIndex(int i, unsigned int cc) const
subentity compressed index
Definition yaspgridentity.hh:370
GridImp::template Codim< codim >::EntitySeed EntitySeed
Definition yaspgridentity.hh:253
EntitySeed seed() const
Return the entity seed which contains sufficient information to generate the entity again and uses as...
Definition yaspgridentity.hh:264
int compressedIndex() const
consecutive, codim-wise, level-wise index
Definition yaspgridentity.hh:364
GridImp::template Codim< codim >::Geometry Geometry
Definition yaspgridentity.hh:250
GridImp::PersistentIndexType PersistentIndexType
Definition yaspgridentity.hh:330
unsigned int subEntities(unsigned int cc) const
Definition yaspgridentity.hh:288
I & transformingsubiterator()
Definition yaspgridentity.hh:395
Describes the minimal information necessary to create a fully functional YaspEntity.
Definition yaspgridentityseed.hh:18
Iterates over entities of one grid level.
Definition yaspgridleveliterator.hh:19
YaspIntersectionIterator enables iteration over intersections with neighboring codim 0 entities.
Definition yaspgridintersectioniterator.hh:22
YaspHierarchicIterator enables iteration over son entities of codim 0.
Definition yaspgridhierarchiciterator.hh:20
Implementation of Level- and LeafIndexSets for YaspGrid.
Definition yaspgridindexsets.hh:25
LeafIntersectionIterator ileafbegin() const
returns intersection iterator for first intersection
Definition yaspgridentity.hh:631
GridImp::template Codim< 0 >::LocalGeometry LocalGeometry
Definition yaspgridentity.hh:426
Codim< cc >::Entity subEntity(int i) const
Definition yaspgridentity.hh:545
bool equals(const YaspEntity &e) const
Return true when two iterators over the same grid are equal (!).
Definition yaspgridentity.hh:464
YaspEntity(const YGLI &g, I &&it)
Definition yaspgridentity.hh:455
GridImp::template Codim< 0 >::EntitySeed EntitySeed
Definition yaspgridentity.hh:435
GridImp::PersistentIndexType PersistentIndexType
define the type used for persistent indices
Definition yaspgridentity.hh:442
GridImp::YGrid::iTupel iTupel
define type used for coordinates in grid module
Definition yaspgridentity.hh:445
const YGLI & gridlevel() const
Definition yaspgridentity.hh:606
IntersectionIterator iend() const
Reference to one past the last neighbor.
Definition yaspgridentity.hh:644
const I & transformingsubiterator() const
Definition yaspgridentity.hh:605
YaspEntity(const YGLI &g, const I &it)
Definition yaspgridentity.hh:451
const GridImp * yaspgrid() const
Definition yaspgridentity.hh:609
int level() const
level of this element
Definition yaspgridentity.hh:470
GridImp::LeafIntersectionIterator LeafIntersectionIterator
Definition yaspgridentity.hh:438
YaspEntity(YGLI &&g, I &&it)
Definition yaspgridentity.hh:459
PartitionType partitionType() const
return partition type attribute
Definition yaspgridentity.hh:480
LevelIntersectionIterator ilevelend() const
Reference to one past the last neighbor.
Definition yaspgridentity.hh:656
bool mightVanish() const
Returns true, if entity might disappear during the next call to adapt()
Definition yaspgridentity.hh:622
GridImp::HierarchicIterator HierarchicIterator
Definition yaspgridentity.hh:439
GridImp::template Codim< 0 >::Entity Entity
Definition yaspgridentity.hh:434
LevelIntersectionIterator ilevelbegin() const
returns intersection iterator for first intersection
Definition yaspgridentity.hh:638
LeafIntersectionIterator ileafend() const
Reference to one past the last neighbor.
Definition yaspgridentity.hh:650
GridImp::template Codim< 0 >::Geometry Geometry
Definition yaspgridentity.hh:425
Geometry geometry() const
geometry of this entity
Definition yaspgridentity.hh:491
Entity father() const
Inter-level access to father element on coarser grid. Assumes that meshes are nested.
Definition yaspgridentity.hh:561
bool isNew() const
Returns true, if the entity has been created during the last call to adapt()
Definition yaspgridentity.hh:618
constexpr GeometryType type() const
Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
Definition yaspgridentity.hh:519
EntitySeed seed() const
Return the entity seed which contains sufficient information to generate the entity again and uses as...
Definition yaspgridentity.hh:475
HierarchicIterator hbegin(int maxlevel) const
Definition yaspgridentity.hh:665
IntersectionIterator ibegin() const
returns intersection iterator for first intersection
Definition yaspgridentity.hh:625
GridImp::YGridLevelIterator YGLI
Definition yaspgridentity.hh:422
unsigned int subEntities(unsigned int codim) const
Definition yaspgridentity.hh:537
LocalGeometry geometryInFather() const
Definition yaspgridentity.hh:588
GridImp::LevelIntersectionIterator IntersectionIterator
Definition yaspgridentity.hh:436
GridImp::LevelIntersectionIterator LevelIntersectionIterator
Definition yaspgridentity.hh:437
I & transformingsubiterator()
Definition yaspgridentity.hh:607
bool hasFather() const
returns true if father entity exists
Definition yaspgridentity.hh:581
GridImp::template Codim< cd >::Entity Entity
Definition yaspgridentity.hh:431
int level() const
level of this element
Definition yaspgridentity.hh:830
bool equals(const YaspEntity &e) const
Return true when two iterators over the same grid are equal (!).
Definition yaspgridentity.hh:824
Geometry geometry() const
geometry of this entity
Definition yaspgridentity.hh:849
YaspEntity(const YGLI &g, const I &it)
Definition yaspgridentity.hh:815
unsigned int subEntities(unsigned int cc) const
Definition yaspgridentity.hh:843
PartitionType partitionType() const
return partition type attribute
Definition yaspgridentity.hh:863
GridImp::YGridLevelIterator YGLI
Definition yaspgridentity.hh:798
GridImp::PersistentIndexType PersistentIndexType
define the type used for persistent indices
Definition yaspgridentity.hh:806
EntitySeed seed() const
Return the entity seed which contains sufficient information to generate the entity again and uses as...
Definition yaspgridentity.hh:835
const GridImp * yaspgrid() const
Definition yaspgridentity.hh:943
constexpr GeometryType type() const
Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
Definition yaspgridentity.hh:857
I & transformingsubiterator()
Definition yaspgridentity.hh:940
const I & transformingsubiterator() const
Definition yaspgridentity.hh:938
GridImp::YGrid::iTupel iTupel
define type used for coordinates in grid module
Definition yaspgridentity.hh:809
GridImp::template Codim< dim >::Geometry Geometry
Definition yaspgridentity.hh:801
const YGLI & gridlevel() const
Definition yaspgridentity.hh:939
YaspEntity(YGLI &&g, I &&it)
Definition yaspgridentity.hh:819
GridImp::template Codim< dim >::EntitySeed EntitySeed
Definition yaspgridentity.hh:803
T min(T... args)
T move(T... args)
T to_ulong(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8