|
dune-grid 2.9.1
|
Loading...
Searching...
No Matches
yaspgridentity.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
87 static constexpr std::array<int,(n+1)*(n+2)/2> _values = computeValues(std::make_index_sequence<(n+1)*(n+2)/2>{});
161 static constexpr std::array<unsigned char, sizeof...(I)> computeValues(std::index_sequence<I...>)
167 static constexpr std::array<int,dim+1> _offsets = computeOffsets(std::make_index_sequence<dim+1>{});
168 static constexpr std::array<unsigned char,Dune::power(3,dim)> _values = computeValues(std::make_index_sequence<Dune::power(3,dim)>{});
583 return typename Codim<cc>::Entity(YaspEntity<cc,GridImp::dimension,GridImp>(_g,_g->overlapfront[cc].begin(coord, which)));
644 bool isNew () const { return yaspgrid()->adaptRefCount > 0 && yaspgrid()->maxLevel() < _g->level() + yaspgrid()->adaptRefCount; }
int binomial(int upper, int lower)
int size() const
size_type dim() const
std::ptrdiff_t index() const
#define DUNE_THROW(E, m)
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:268
Geometry geometry() const
geometry of this entity
Definition yaspgridentity.hh:296
constexpr GeometryType type() const
Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
Definition yaspgridentity.hh:305
PersistentIndexType persistentIndex() const
globally unique, persistent index
Definition yaspgridentity.hh:359
const I & transformingsubiterator() const
Definition yaspgridentity.hh:419
bool equals(const YaspEntity &e) const
Return true when two iterators over the same grid are equal (!).
Definition yaspgridentity.hh:347
PartitionType partitionType() const
return partition type attribute
Definition yaspgridentity.hh:320
GridImp::Traits::template Codim< codim >::GeometryImpl GeometryImpl
Definition yaspgridentity.hh:277
int subCompressedIndex(int i, unsigned int cc) const
subentity compressed index
Definition yaspgridentity.hh:396
GridImp::template Codim< codim >::EntitySeed EntitySeed
Definition yaspgridentity.hh:279
EntitySeed seed() const
Return the entity seed which contains sufficient information to generate the entity again and uses as...
Definition yaspgridentity.hh:290
int compressedIndex() const
consecutive, codim-wise, level-wise index
Definition yaspgridentity.hh:390
GridImp::template Codim< codim >::Geometry Geometry
Definition yaspgridentity.hh:276
GridImp::PersistentIndexType PersistentIndexType
Definition yaspgridentity.hh:356
unsigned int subEntities(unsigned int cc) const
Definition yaspgridentity.hh:314
I & transformingsubiterator()
Definition yaspgridentity.hh:421
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:657
GridImp::template Codim< 0 >::LocalGeometry LocalGeometry
Definition yaspgridentity.hh:452
Codim< cc >::Entity subEntity(int i) const
Definition yaspgridentity.hh:571
bool equals(const YaspEntity &e) const
Return true when two iterators over the same grid are equal (!).
Definition yaspgridentity.hh:490
YaspEntity(const YGLI &g, I &&it)
Definition yaspgridentity.hh:481
GridImp::template Codim< 0 >::EntitySeed EntitySeed
Definition yaspgridentity.hh:461
GridImp::PersistentIndexType PersistentIndexType
define the type used for persistent indices
Definition yaspgridentity.hh:468
GridImp::YGrid::iTupel iTupel
define type used for coordinates in grid module
Definition yaspgridentity.hh:471
const YGLI & gridlevel() const
Definition yaspgridentity.hh:632
IntersectionIterator iend() const
Reference to one past the last neighbor.
Definition yaspgridentity.hh:670
const I & transformingsubiterator() const
Definition yaspgridentity.hh:631
YaspEntity(const YGLI &g, const I &it)
Definition yaspgridentity.hh:477
const GridImp * yaspgrid() const
Definition yaspgridentity.hh:635
int level() const
level of this element
Definition yaspgridentity.hh:496
GridImp::LeafIntersectionIterator LeafIntersectionIterator
Definition yaspgridentity.hh:464
YaspEntity(YGLI &&g, I &&it)
Definition yaspgridentity.hh:485
PartitionType partitionType() const
return partition type attribute
Definition yaspgridentity.hh:506
LevelIntersectionIterator ilevelend() const
Reference to one past the last neighbor.
Definition yaspgridentity.hh:682
bool mightVanish() const
Returns true, if entity might disappear during the next call to adapt()
Definition yaspgridentity.hh:648
GridImp::HierarchicIterator HierarchicIterator
Definition yaspgridentity.hh:465
GridImp::template Codim< 0 >::Entity Entity
Definition yaspgridentity.hh:460
LevelIntersectionIterator ilevelbegin() const
returns intersection iterator for first intersection
Definition yaspgridentity.hh:664
LeafIntersectionIterator ileafend() const
Reference to one past the last neighbor.
Definition yaspgridentity.hh:676
GridImp::template Codim< 0 >::Geometry Geometry
Definition yaspgridentity.hh:451
Geometry geometry() const
geometry of this entity
Definition yaspgridentity.hh:517
Entity father() const
Inter-level access to father element on coarser grid. Assumes that meshes are nested.
Definition yaspgridentity.hh:587
bool isNew() const
Returns true, if the entity has been created during the last call to adapt()
Definition yaspgridentity.hh:644
constexpr GeometryType type() const
Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
Definition yaspgridentity.hh:545
EntitySeed seed() const
Return the entity seed which contains sufficient information to generate the entity again and uses as...
Definition yaspgridentity.hh:501
HierarchicIterator hbegin(int maxlevel) const
Definition yaspgridentity.hh:691
IntersectionIterator ibegin() const
returns intersection iterator for first intersection
Definition yaspgridentity.hh:651
GridImp::YGridLevelIterator YGLI
Definition yaspgridentity.hh:448
unsigned int subEntities(unsigned int codim) const
Definition yaspgridentity.hh:563
LocalGeometry geometryInFather() const
Definition yaspgridentity.hh:614
GridImp::LevelIntersectionIterator IntersectionIterator
Definition yaspgridentity.hh:462
GridImp::LevelIntersectionIterator LevelIntersectionIterator
Definition yaspgridentity.hh:463
I & transformingsubiterator()
Definition yaspgridentity.hh:633
bool hasFather() const
returns true if father entity exists
Definition yaspgridentity.hh:607
GridImp::template Codim< cd >::Entity Entity
Definition yaspgridentity.hh:457
int level() const
level of this element
Definition yaspgridentity.hh:856
bool equals(const YaspEntity &e) const
Return true when two iterators over the same grid are equal (!).
Definition yaspgridentity.hh:850
Geometry geometry() const
geometry of this entity
Definition yaspgridentity.hh:875
YaspEntity(const YGLI &g, const I &it)
Definition yaspgridentity.hh:841
unsigned int subEntities(unsigned int cc) const
Definition yaspgridentity.hh:869
PartitionType partitionType() const
return partition type attribute
Definition yaspgridentity.hh:889
GridImp::YGridLevelIterator YGLI
Definition yaspgridentity.hh:824
GridImp::PersistentIndexType PersistentIndexType
define the type used for persistent indices
Definition yaspgridentity.hh:832
EntitySeed seed() const
Return the entity seed which contains sufficient information to generate the entity again and uses as...
Definition yaspgridentity.hh:861
const GridImp * yaspgrid() const
Definition yaspgridentity.hh:969
constexpr GeometryType type() const
Return the name of the reference element. The type can be used to access the Dune::ReferenceElement.
Definition yaspgridentity.hh:883
I & transformingsubiterator()
Definition yaspgridentity.hh:966
const I & transformingsubiterator() const
Definition yaspgridentity.hh:964
GridImp::YGrid::iTupel iTupel
define type used for coordinates in grid module
Definition yaspgridentity.hh:835
GridImp::template Codim< dim >::Geometry Geometry
Definition yaspgridentity.hh:827
const YGLI & gridlevel() const
Definition yaspgridentity.hh:965
YaspEntity(YGLI &&g, I &&it)
Definition yaspgridentity.hh:845
GridImp::template Codim< dim >::EntitySeed EntitySeed
Definition yaspgridentity.hh:829
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