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::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 | |
AdaptiveLeafIndexSet (const GridType *grid) | |
Constructor. | |
AdaptiveLeafIndexSet (const GridPartType &gridPart) | |
Constructor. | |
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< 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) |
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 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.
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.
|
protectedinherited |
|
protectedinherited |
dof manager type
|
inherited |
type of codimension 0 Entity
|
protectedinherited |
typedef BaseType::GridPartType Dune::Fem::AdaptiveLeafIndexSet< GridPartImp >::GridPartType |
typedef BaseType::GridType Dune::Fem::AdaptiveLeafIndexSet< GridPartImp >::GridType |
|
inherited |
index type */
*/
|
inherited |
type of intersection iterator
|
inherited |
type of intersections
|
inherited |
geometry type range type */
*/
|
inline |
Constructor.
|
inline |
Constructor.
|
inlinefinaloverridevirtualinherited |
please doc me
Implements Dune::Fem::PersistentIndexSetInterface.
|
inlineinherited |
please doc me
|
inlineprotectedinherited |
|
inlineprotectedinherited |
clear index set (only for structured grids)
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
|
inlineinherited |
return true if entity has index */
*/
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
*/
*/
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
return number of entities of given type */
*/
|
inlineinherited |
|
inlineinherited |
return number of entities of given type */
*/
|
inlineinherited |
please doc me */
*/
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlinevirtual |
return name of index set
Reimplemented from Dune::Fem::AdaptiveIndexSetBase< AdaptiveLeafIndexSetTraits< GridPartImp > >.
|
inlineinherited |
return new index, for dof manager only returns index
|
inlineinherited |
return new index for given hole and type */
*/
|
inlineinherited |
return number of holes of the sets indices
|
inlineinherited |
return number of holes for given type */
*/
|
inlineinherited |
return old index, for dof manager only
|
inlineinherited |
return old index for given hole and type */
*/
|
inlineinherited |
please doc me */
*/
|
inlinefinaloverridevirtualinherited |
please doc me
Implements Dune::Fem::PersistentIndexSetInterface.
|
inlineinherited |
please doc me */
*/
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineinherited |
please doc me */
*/
|
inlineinherited |
reallocate the vector for new size
|
inlineinherited |
please doc me
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
mark all indices of interest
|
inlineprotectedinherited |
|
inlineinherited |
return number of entities of given type */
*/
|
inlineinherited |
return number of entities of given type */
*/
|
inlineinherited |
return index for given subentity */
*/
|
inlineinherited |
|
inlineinherited |
return index for given subentity */
*/
|
inlineinherited |
return type of index set, for GrapeDataIO
|
inlineinherited |
return range of geometry types */
*/
|
inlineinherited |
please doc me */
*/
|
staticinherited |
grid dimension */
*/
|
protectedinherited |
|
protectedinherited |
|
staticinherited |
true if only one geometry type is available
|
staticinherited |
intersection codimension (numCodim-1 if enabled, otherwise -1)
|
staticinherited |
number of supported codimensions