dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp > Class Template Reference

consecutive, persistent index set for the leaf level based on the grid's hierarchy index set More...

#include <dune/fem/gridpart/adaptiveleafindexset.hh>

Inheritance diagram for Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >:
Inheritance graph

Public Types

typedef BaseType::GridType GridType
 
typedef BaseType::GridPartType GridPartType
 
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

 DGAdaptiveLeafIndexSet (const GridType *grid)
 Constructor.
 
 DGAdaptiveLeafIndexSet (const GridPartType &gridPart)
 
virtual std::string name () const
 return name of index set
 
bool compress ()
 
void requestCodimensions (const std::vector< int > &codimensions) const
 
int type () const
 return type of index set, for GrapeDataIO
 
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 *‍/
 
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 *‍/
 
IndexType index (const Entity &entity) const
 return number of entities of given type *‍/
 
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
 
IndexType subIndex (const Entity &entity, int subNumber, unsigned int codim) const
 return index for given subentity *‍/
 
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
 
bool write (OutStreamInterface< StreamTraits > &out) const
 please doc me *‍/
 
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
 grid dimension *‍/
 
static const int numCodimensions
 number of supported codimensions
 
static const int intersectionCodimension
 intersection codimension (numCodim-1 if enabled, otherwise -1)
 
static const bool hasSingleGeometryType
 true if only one geometry type is available
 

Protected Types

typedef TraitsImp::CodimIndexSetType CodimIndexSetType
 
typedef GridType::template Codim< 0 >::Entity GridElementType
 
typedef DofManager< GridTypeDofManagerType
 dof manager type
 

Protected Member Functions

bool codimAvailable (const int codim) const
 
bool codimUsed (const int codim) const
 
CodimIndexSetTypecodimLeafSet (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)
 
void markAllUsed ()
 
void clear ()
 clear index set (only for structured grids)
 
void setupIndexSet ()
 mark all indices of interest
 
void markAllBelowOld ()
 
void setupCodimSet (const std::integral_constant< bool, true > &hasEntities) const
 
void setupCodimSet (const std::integral_constant< bool, false > &hasEntities) const
 
void setupIntersections () const
 
IndexType countElements (GeometryType type, const std::integral_constant< bool, true > &hasEntities) const
 
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 GridTypegrid_
 
DofManagerTypedofManager_
 

Detailed Description

template<class GridPartImp>
class Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >

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 codimension 0 entity.

Note
This index sets supports only indices for codimensions 0 entities of the grid.

Member Typedef Documentation

◆ CodimIndexSetType

typedef TraitsImp::CodimIndexSetType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::CodimIndexSetType
protectedinherited

◆ DofManagerType

typedef DofManager< GridType > Dune::Fem::PersistentIndexSet< Traits, AdaptiveIndexSet >::DofManagerType
protectedinherited

dof manager type

◆ ElementType

typedef BaseType::template Codim<0>::Entity Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::ElementType
inherited

type of codimension 0 Entity

◆ GridElementType

typedef GridType::template Codim<0>::Entity Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::GridElementType
protectedinherited

◆ GridPartType

template<class GridPartImp >
typedef BaseType::GridPartType Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >::GridPartType

◆ GridType

template<class GridPartImp >
typedef BaseType::GridType Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >::GridType

◆ IndexType

index type *‍/

*‍/

◆ IntersectionIteratorType

typedef GridPartType::IntersectionIteratorType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::IntersectionIteratorType
inherited

type of intersection iterator

◆ IntersectionType

typedef GridPartType::IntersectionType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::IntersectionType
inherited

type of intersections

◆ Types

geometry type range type *‍/

*‍/

Constructor & Destructor Documentation

◆ DGAdaptiveLeafIndexSet() [1/2]

template<class GridPartImp >
Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >::DGAdaptiveLeafIndexSet ( const GridType grid)
inline

Constructor.

◆ DGAdaptiveLeafIndexSet() [2/2]

template<class GridPartImp >
Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >::DGAdaptiveLeafIndexSet ( const GridPartType gridPart)
inline

Member Function Documentation

◆ addBackupRestore()

void Dune::Fem::PersistentIndexSet< Traits, AdaptiveIndexSet >::addBackupRestore ( )
inlinefinaloverridevirtualinherited

please doc me

Implements Dune::Fem::PersistentIndexSetInterface.

◆ backup()

void Dune::Fem::PersistentIndexSet< Traits, AdaptiveIndexSet >::backup ( ) const
inlineinherited

please doc me

◆ checkHierarchy()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::checkHierarchy ( const GridElementType entity,
bool  wasNew 
)
inlineprotectedinherited

◆ clear()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::clear
inlineprotectedinherited

clear index set (only for structured grids)

◆ codimAvailable()

bool Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::codimAvailable ( const int  codim) const
inlineprotectedinherited

◆ codimLeafSet()

CodimIndexSetType & Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::codimLeafSet ( const int  codim) const
inlineprotectedinherited

◆ codimUsed()

bool Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::codimUsed ( const int  codim) const
inlineprotectedinherited

◆ compress()

template<class GridPartImp >
bool Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >::compress ( )
inline

◆ contains()

bool Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::contains ( const EntityType &  en) const
inlineinherited

return true if entity has index *‍/

*‍/

◆ countElements() [1/2]

AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::countElements ( GeometryType  type,
const std::integral_constant< bool, false > &  hasEntities 
) const
inlineprotectedinherited

◆ countElements() [2/2]

AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::countElements ( GeometryType  type,
const std::integral_constant< bool, true > &  hasEntities 
) const
inlineprotectedinherited

◆ geomTypes()

const std::vector< GeometryType > & Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::geomTypes ( const int  codim) const
inlineinherited

*‍/

*‍/

◆ getIntersectionFace() [1/2]

FaceType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::getIntersectionFace ( const IntersectionType intersection) const
inlineprotectedinherited

◆ getIntersectionFace() [2/2]

FaceType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::getIntersectionFace ( const IntersectionType intersection,
const ElementType inside 
) const
inlineprotectedinherited

◆ index() [1/3]

IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::index ( const Entity &  entity) const
inlineinherited

return number of entities of given type *‍/

*‍/

◆ index() [2/3]

IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::index ( const IntersectionType intersection) const
inlineinherited

◆ index() [3/3]

IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::index ( const typename GridPartType::template Codim< codim >::EntityType &  entity) const
inlineinherited

return number of entities of given type *‍/

*‍/

◆ insertEntity()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::insertEntity ( const GridElementType entity)
inlineinherited

please doc me *‍/

*‍/

◆ insertIndex()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::insertIndex ( const GridElementType entity)
inlineprotectedinherited

◆ insertIntersections()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::insertIntersections ( const GridElementType entity) const
inlineprotectedinherited

◆ insertTemporary()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::insertTemporary ( const GridElementType entity)
inlineprotectedinherited

◆ markAllBelowOld()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::markAllBelowOld
inlineprotectedinherited

◆ markAllUsed()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::markAllUsed
inlineprotectedinherited

◆ name()

template<class GridPartImp >
virtual std::string Dune::Fem::DGAdaptiveLeafIndexSet< GridPartImp >::name ( ) const
inlinevirtual

◆ newIndex() [1/2]

int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::newIndex ( const int  hole,
const int  codim 
) const
inlineinherited

return new index, for dof manager only returns index

◆ newIndex() [2/2]

int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::newIndex ( int  hole,
GeometryType  type 
) const
inlineinherited

return new index for given hole and type *‍/

*‍/

◆ numberOfHoles() [1/2]

int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::numberOfHoles ( const int  codim) const
inlineinherited

return number of holes of the sets indices

◆ numberOfHoles() [2/2]

int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::numberOfHoles ( GeometryType  type) const
inlineinherited

return number of holes for given type *‍/

*‍/

◆ oldIndex() [1/2]

int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::oldIndex ( const int  hole,
const int  codim 
) const
inlineinherited

return old index, for dof manager only

◆ oldIndex() [2/2]

int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::oldIndex ( int  hole,
GeometryType  type 
) const
inlineinherited

return old index for given hole and type *‍/

*‍/

◆ read()

bool Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::read ( InStreamInterface< StreamTraits > &  in)
inlineinherited

please doc me *‍/

*‍/

◆ removeBackupRestore()

void Dune::Fem::PersistentIndexSet< Traits, AdaptiveIndexSet >::removeBackupRestore ( )
inlinefinaloverridevirtualinherited

please doc me

Implements Dune::Fem::PersistentIndexSetInterface.

◆ removeEntity()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::removeEntity ( const GridElementType entity)
inlineinherited

please doc me *‍/

*‍/

◆ removeIndex()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::removeIndex ( const GridElementType entity)
inlineprotectedinherited

◆ requestCodimensions()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::requestCodimensions ( const std::vector< int > &  codimensions) const
inlineinherited

◆ resize()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::resize ( )
inlineinherited

please doc me *‍/

*‍/

◆ resizeVectors()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::resizeVectors
inlineinherited

reallocate the vector for new size

◆ restore()

void Dune::Fem::PersistentIndexSet< Traits, AdaptiveIndexSet >::restore ( )
inlineinherited

please doc me

◆ setupCodimSet() [1/2]

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::setupCodimSet ( const std::integral_constant< bool, false > &  hasEntities) const
inlineprotectedinherited

◆ setupCodimSet() [2/2]

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::setupCodimSet ( const std::integral_constant< bool, true > &  hasEntities) const
inlineprotectedinherited

◆ setupIndexSet()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::setupIndexSet
inlineprotectedinherited

mark all indices of interest

◆ setupIntersections()

void Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::setupIntersections
inlineprotectedinherited

◆ size() [1/2]

IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::size ( GeometryType  type) const
inlineinherited

return number of entities of given type *‍/

*‍/

◆ size() [2/2]

IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::size ( int  codim) const
inlineinherited

return number of entities of given type *‍/

*‍/

◆ subIndex() [1/3]

IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::subIndex ( const Entity &  entity,
int  subNumber,
unsigned int  codim 
) const
inlineinherited

return index for given subentity *‍/

*‍/

◆ subIndex() [2/3]

IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::subIndex ( const IntersectionType intersection,
int  subNumber,
unsigned int  codim 
) const
inlineinherited

◆ subIndex() [3/3]

IndexType Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::subIndex ( const typename GridPartType::template Codim< cd >::EntityType &  entity,
int  subNumber,
unsigned int  codim 
) const
inlineinherited

return index for given subentity *‍/

*‍/

◆ type()

int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::type ( ) const
inlineinherited

return type of index set, for GrapeDataIO

◆ types()

Types Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::types ( const int  codim) const
inlineinherited

return range of geometry types *‍/

*‍/

◆ write()

bool Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::write ( OutStreamInterface< StreamTraits > &  out) const
inlineinherited

please doc me *‍/

*‍/

Member Data Documentation

◆ dimension

const int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::dimension
staticinherited

grid dimension *‍/

*‍/

◆ dofManager_

◆ grid_

const GridType& Dune::Fem::PersistentIndexSet< Traits, AdaptiveIndexSet >::grid_
protectedinherited

◆ hasSingleGeometryType

const bool Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::hasSingleGeometryType
staticinherited

true if only one geometry type is available

◆ intersectionCodimension

const int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::intersectionCodimension
staticinherited

intersection codimension (numCodim-1 if enabled, otherwise -1)

◆ numCodimensions

const int Dune::Fem::AdaptiveIndexSetBase< DGAdaptiveLeafIndexSetTraits< GridPartImp > >::numCodimensions
staticinherited

number of supported codimensions


The documentation for this class was generated from the following file: