dune-fem 2.8.0
|
consecutive, persistent index set for the leaf level based on the grid's hierarchy index set More...
#include <dune/fem/gridpart/adaptiveleafindexset.hh>
Public Types | |
typedef BaseType::IndexType | IndexType |
index type */ | |
typedef BaseType::Types | Types |
geometry type range type */ | |
typedef BaseType::template Codim< 0 >::Entity | ElementType |
type of codimension 0 Entity | |
typedef GridPartType::IntersectionIteratorType | IntersectionIteratorType |
type of intersection iterator | |
typedef GridPartType::IntersectionType | IntersectionType |
type of intersections | |
Public Member Functions | |
void | requestCodimensions (const std::vector< int > &codimensions) const |
AdaptiveIndexSetBase (const GridType *grid) | |
Constructor. | |
AdaptiveIndexSetBase (const GridPartType &gridPart) | |
Constructor. | |
int | type () const |
return type of index set, for GrapeDataIO | |
virtual std::string | name () const |
return name of index set | |
IndexType | size (GeometryType type) const |
return number of entities of given type */ | |
IndexType | size (int codim) const |
return number of entities of given type */ | |
const std::vector< GeometryType > & | geomTypes (const int codim) const |
*/ | |
Types | types (const int codim) const |
return range of geometry types */ | |
template<class EntityType > | |
bool | contains (const EntityType &en) const |
return true if entity has index */ | |
void | insertEntity (const GridElementType &entity) |
please doc me */ | |
void | removeEntity (const GridElementType &entity) |
please doc me */ | |
void | resizeVectors () |
reallocate the vector for new size | |
void | resize () |
please doc me */ | |
bool | compress () |
please doc me */ | |
template<class Entity > | |
IndexType | index (const Entity &entity) const |
return number of entities of given type */ | |
template<int codim> | |
IndexType | index (const typename GridPartType::template Codim< codim >::EntityType &entity) const |
return number of entities of given type */ | |
IndexType | index (const IntersectionType &intersection) const |
IndexType | subIndex (const IntersectionType &intersection, int subNumber, unsigned int codim) const |
template<class Entity > | |
IndexType | subIndex (const Entity &entity, int subNumber, unsigned int codim) const |
return index for given subentity */ | |
template<int cd> | |
IndexType | subIndex (const typename GridPartType::template Codim< cd >::EntityType &entity, int subNumber, unsigned int codim) const |
return index for given subentity */ | |
int | numberOfHoles (GeometryType type) const |
return number of holes for given type */ | |
int | numberOfHoles (const int codim) const |
return number of holes of the sets indices | |
int | oldIndex (int hole, GeometryType type) const |
return old index for given hole and type */ | |
int | oldIndex (const int hole, const int codim) const |
return old index, for dof manager only | |
int | newIndex (int hole, GeometryType type) const |
return new index for given hole and type */ | |
int | newIndex (const int hole, const int codim) const |
return new index, for dof manager only returns index | |
template<class StreamTraits > | |
bool | write (OutStreamInterface< StreamTraits > &out) const |
please doc me */ | |
template<class StreamTraits > | |
bool | read (InStreamInterface< StreamTraits > &in) |
please doc me */ | |
void | backup () const |
please doc me | |
void | restore () |
please doc me | |
void | addBackupRestore () override final |
please doc me | |
void | removeBackupRestore () override final |
please doc me | |
Static Public Attributes | |
static const int | dimension = BaseType::dimension |
grid dimension */ | |
static const int | numCodimensions = TraitsImp :: numCodimensions |
number of supported codimensions | |
static const int | intersectionCodimension = TraitsImp :: intersectionCodimension |
intersection codimension (numCodim-1 if enabled, otherwise -1) | |
static const bool | hasSingleGeometryType = Dune::Capabilities::hasSingleGeometryType< GridType > :: v |
true if only one geometry type is available | |
Protected Types | |
typedef TraitsImp::GridPartType | GridPartType |
typedef GridPartType::GridType | GridType |
typedef TraitsImp::CodimIndexSetType | CodimIndexSetType |
typedef GridType::template Codim< 0 >::Entity | GridElementType |
typedef DofManager< GridType > | DofManagerType |
dof manager type | |
Protected Member Functions | |
bool | codimAvailable (const int codim) const |
bool | codimUsed (const int codim) const |
CodimIndexSetType & | codimLeafSet (const int codim) const |
void | insertIndex (const GridElementType &entity) |
void | insertIntersections (const GridElementType &entity) const |
void | insertTemporary (const GridElementType &entity) |
void | removeIndex (const GridElementType &entity) |
void | checkHierarchy (const GridElementType &entity, bool wasNew) |
template<PartitionIteratorType pt> | |
void | markAllUsed () |
void | clear () |
clear index set (only for structured grids) | |
void | setupIndexSet () |
mark all indices of interest | |
template<PartitionIteratorType pt> | |
void | markAllBelowOld () |
template<int codim> | |
void | setupCodimSet (const std::integral_constant< bool, true > &hasEntities) const |
template<int codim> | |
void | setupCodimSet (const std::integral_constant< bool, false > &hasEntities) const |
void | setupIntersections () const |
template<int codim> | |
IndexType | countElements (GeometryType type, const std::integral_constant< bool, true > &hasEntities) const |
template<int codim> | |
IndexType | countElements (GeometryType type, const std::integral_constant< bool, false > &hasEntities) const |
FaceType | getIntersectionFace (const IntersectionType &intersection) const |
FaceType | getIntersectionFace (const IntersectionType &intersection, const ElementType &inside) const |
Protected Attributes | |
const GridType & | grid_ |
DofManagerType & | dofManager_ |
consecutive, persistent index set for the leaf level based on the grid's hierarchy index set
This index set generates a consecutive leaf index out of the unique global index of each entity. It can be used instead of the default grid index sets and can be generated for each grid implementation.
|
protected |
|
protectedinherited |
dof manager type
typedef BaseType::template Codim<0>::Entity Dune::Fem::AdaptiveIndexSetBase< TraitsImp >::ElementType |
type of codimension 0 Entity
|
protected |
|
protected |
|
protected |
typedef BaseType::IndexType Dune::Fem::AdaptiveIndexSetBase< TraitsImp >::IndexType |
index type */
*/
typedef GridPartType::IntersectionIteratorType Dune::Fem::AdaptiveIndexSetBase< TraitsImp >::IntersectionIteratorType |
type of intersection iterator
typedef GridPartType::IntersectionType Dune::Fem::AdaptiveIndexSetBase< TraitsImp >::IntersectionType |
type of intersections
typedef BaseType::Types Dune::Fem::AdaptiveIndexSetBase< TraitsImp >::Types |
geometry type range type */
*/
|
inline |
Constructor.
|
inline |
Constructor.
get geometry types (not working for hybrid grids, like to whole set itself)
|
inlinefinaloverridevirtualinherited |
please doc me
Implements Dune::Fem::PersistentIndexSetInterface.
|
inlineinherited |
please doc me
|
inlineprotected |
|
inlineprotected |
clear index set (only for structured grids)
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
please doc me */
*/
|
inline |
return true if entity has index */
*/
|
inlineprotected |
|
inlineprotected |
|
inline |
*/
*/
|
inlineprotected |
|
inlineprotected |
|
inline |
return number of entities of given type */
*/
|
inline |
|
inline |
return number of entities of given type */
*/
|
inline |
please doc me */
*/
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
return name of index set
Reimplemented in Dune::Fem::AdaptiveLeafIndexSet< GridPartImp >, Dune::Fem::IntersectionAdaptiveLeafIndexSet< GridPartImp >, and Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >.
|
inline |
return new index, for dof manager only returns index
|
inline |
return new index for given hole and type */
*/
|
inline |
return number of holes of the sets indices
|
inline |
return number of holes for given type */
*/
|
inline |
return old index, for dof manager only
|
inline |
return old index for given hole and type */
*/
|
inline |
please doc me */
*/
|
inlinefinaloverridevirtualinherited |
please doc me
Implements Dune::Fem::PersistentIndexSetInterface.
|
inline |
please doc me */
*/
|
inlineprotected |
|
inline |
|
inline |
please doc me */
*/
|
inline |
reallocate the vector for new size
|
inlineinherited |
please doc me
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
mark all indices of interest
|
inlineprotected |
|
inline |
return number of entities of given type */
*/
|
inline |
return number of entities of given type */
*/
|
inline |
return index for given subentity */
*/
|
inline |
|
inline |
return index for given subentity */
*/
|
inline |
return type of index set, for GrapeDataIO
|
inline |
return range of geometry types */
*/
|
inline |
please doc me */
*/
|
static |
grid dimension */
*/
|
protectedinherited |
|
protectedinherited |
|
static |
true if only one geometry type is available
|
static |
intersection codimension (numCodim-1 if enabled, otherwise -1)
|
static |
number of supported codimensions