dune-fem  2.8-git
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype > Class Template Reference

A grid part with an index set specially designed for adaptive calculations including indices for intersections. More...

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

Inheritance diagram for Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype >:
Inheritance graph

Public Types

typedef BaseType ::NoIndexSetType NoIndexSetType
 
typedef BaseType ::GridType GridType
 
typedef IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > Traits
 Type definitions. More...
 
typedef Traits ::GridPartType GridPartType
 Grid implementation type. More...
 
typedef Traits ::IndexSetType IndexSetType
 The leaf index set of the grid implementation. More...
 
typedef Traits::IntersectionIteratorType IntersectionIteratorType
 type of intersection iterator More...
 
typedef IntersectionIteratorType::Intersection IntersectionType
 type of intersection More...
 
typedef GridPart2GridViewImpl< GridPartType > GridViewType
 
typedef Traits::CollectiveCommunicationType CollectiveCommunicationType
 Collective communication. More...
 
typedef DofManager< GridType > DofManagerType
 type of DofManager More...
 
typedef BoundaryIdProvider< GridType > BoundaryIdProviderType
 type of boundary id provider specialized for each grid type More...
 
typedef Traits::TwistUtilityType TwistUtilityType
 Twist utility type. More...
 
typedef GridType::ctype ctype
 

Public Member Functions

 IntersectionAdaptiveLeafGridPart (GridType &grid)
 Constructor. More...
 
 IntersectionAdaptiveLeafGridPart (GridType &grid, const NoIndexSetType &noIndexSet)
 copy constructor (for construction from IndexSet, no public use) More...
 
 IntersectionAdaptiveLeafGridPart (const IntersectionAdaptiveLeafGridPart &other)=default
 copy constructor More...
 
const IndexSetType & indexSet () const
 Returns reference to index set of the underlying grid. More...
 
Codim< codim >::IteratorType begin () const
 Begin iterator on the leaf level. More...
 
Codim< codim >::template Partition< pitype >::IteratorType begin () const
 Begin iterator on the leaf level. More...
 
Codim< codim >::IteratorType end () const
 Begin iterator on the leaf level. More...
 
Codim< codim >::template Partition< pitype >::IteratorType end () const
 End iterator on the leaf level. More...
 
IntersectionIteratorType ibegin (const ElementType &entity) const
 ibegin of corresponding intersection iterator for given entity More...
 
IntersectionIteratorType ibegin (const typename Codim< 0 >::EntityType &entity) const
 ibegin of corresponding intersection iterator for given entity More...
 
IntersectionIteratorType iend (const ElementType &entity) const
 iend of corresponding intersection iterator for given entity More...
 
IntersectionIteratorType iend (const typename Codim< 0 >::EntityType &entity) const
 iend of corresponding intersection iterator for given entity More...
 
int level () const
 Returns maxlevel of the grid. More...
 
const GridType & grid () const
 Returns const reference to the underlying grid. More...
 
GridType & grid ()
 Returns reference to the underlying grid. More...
 
const CollectiveCommunicationType & comm () const
 obtain collective communication object More...
 
Traits::template Codim< EntitySeed::codimension >::EntityType entity (const EntitySeed &seed) const
 
const Entity & convert (const Entity &entity) const
 
int sequence () const
 
int boundaryId (const IntersectionType &intersection) const
 
template<class DataHandleImp , class DataType >
void communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const
 corresponding communication method for grid part More...
 

Static Public Attributes

static const PartitionIteratorType indexSetPartitionType = Traits::indexSetPartitionType
 Maximum Partition type, the index set provides indices for. More...
 
static const InterfaceType indexSetInterfaceType = Traits::indexSetInterfaceType
 
static const int dimension = GridType::dimension
 
static const int dimensionworld = GridType::dimensionworld
 

Protected Types

typedef SingletonList< const GridType *, IndexSetType > IndexSetProviderType
 
typedef Codim< 0 >::EntityType ElementType
 

Protected Member Functions

const GridPartType & asImp () const
 
GridPartType & asImp ()
 

Protected Attributes

LeafGridView leafGridView_
 
std::unique_ptr< IndexSetType, typename IndexSetProviderType::Deleter > indexSet_
 
GridType & grid_
 
DofManagerType & dofManager_
 

Detailed Description

template<class Grid, PartitionIteratorType idxpitype>
class Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype >

A grid part with an index set specially designed for adaptive calculations including indices for intersections.

The underlying index set is defined also for codimension -1 (intersections).

Member Typedef Documentation

◆ BoundaryIdProviderType

type of boundary id provider specialized for each grid type

◆ CollectiveCommunicationType

typedef Traits::CollectiveCommunicationType Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::CollectiveCommunicationType
inherited

Collective communication.

◆ ctype

template<class GridPartTraits >
typedef GridType::ctype Dune::Fem::GridPartInterface< GridPartTraits >::ctype
inherited

◆ DofManagerType

type of DofManager

◆ ElementType

typedef Codim< 0 >:: EntityType Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::ElementType
protectedinherited

◆ GridPartType

Grid implementation type.

◆ GridType

template<class Grid , PartitionIteratorType idxpitype>
typedef BaseType :: GridType Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype >::GridType

◆ GridViewType

◆ IndexSetProviderType

◆ IndexSetType

The leaf index set of the grid implementation.

◆ IntersectionIteratorType

typedef Traits::IntersectionIteratorType Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::IntersectionIteratorType
inherited

type of intersection iterator

◆ IntersectionType

typedef IntersectionIteratorType::Intersection Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::IntersectionType
inherited

type of intersection

◆ NoIndexSetType

template<class Grid , PartitionIteratorType idxpitype>
typedef BaseType :: NoIndexSetType Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype >::NoIndexSetType

◆ Traits

Type definitions.

◆ TwistUtilityType

template<class GridPartTraits >
typedef Traits::TwistUtilityType Dune::Fem::GridPartInterface< GridPartTraits >::TwistUtilityType
inherited

Twist utility type.

Constructor & Destructor Documentation

◆ IntersectionAdaptiveLeafGridPart() [1/3]

template<class Grid , PartitionIteratorType idxpitype>
Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype >::IntersectionAdaptiveLeafGridPart ( GridType &  grid)
inlineexplicit

Constructor.

◆ IntersectionAdaptiveLeafGridPart() [2/3]

template<class Grid , PartitionIteratorType idxpitype>
Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype >::IntersectionAdaptiveLeafGridPart ( GridType &  grid,
const NoIndexSetType &  noIndexSet 
)
inline

copy constructor (for construction from IndexSet, no public use)

◆ IntersectionAdaptiveLeafGridPart() [3/3]

template<class Grid , PartitionIteratorType idxpitype>
Dune::Fem::IntersectionAdaptiveLeafGridPart< Grid, idxpitype >::IntersectionAdaptiveLeafGridPart ( const IntersectionAdaptiveLeafGridPart< Grid, idxpitype > &  other)
default

copy constructor

Member Function Documentation

◆ asImp() [1/2]

GridPartType& Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::asImp ( )
inlineprotectedinherited

◆ asImp() [2/2]

const GridPartType& Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::asImp ( ) const
inlineprotectedinherited

◆ begin() [1/2]

Codim< codim >:: IteratorType Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::begin ( ) const
inlineinherited

Begin iterator on the leaf level.

◆ begin() [2/2]

Codim< codim >:: template Partition< pitype >:: IteratorType Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::begin ( ) const
inlineinherited

Begin iterator on the leaf level.

◆ boundaryId()

int Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::boundaryId ( const IntersectionType &  intersection) const
inlineinherited

obtain entity pointer from entity seed

◆ comm()

const CollectiveCommunicationType& Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::comm ( ) const
inlineinherited

obtain collective communication object

◆ communicate()

template<class GridPartTraits >
template<class DataHandleImp , class DataType >
void Dune::Fem::GridPartInterface< GridPartTraits >::communicate ( CommDataHandleIF< DataHandleImp, DataType > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const
inlineinherited

corresponding communication method for grid part

◆ convert()

const Entity& Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::convert ( const Entity &  entity) const
inlineinherited

convert the grid's entity to a grid part entity Usually the parameter is GridType :: Codim< codim > :: Entity and the return is Codim< codim > :: EntityType. In general these types are the same, but for overloaded entities on grid parts this can differ.

Note
The default implementation does nothing but return the same entity

◆ end() [1/2]

Codim< codim >:: IteratorType Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::end ( ) const
inlineinherited

Begin iterator on the leaf level.

◆ end() [2/2]

Codim< codim >:: template Partition< pitype >:: IteratorType Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::end ( ) const
inlineinherited

End iterator on the leaf level.

◆ entity()

Traits::template Codim< EntitySeed::codimension >::EntityType Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::entity ( const EntitySeed &  seed) const
inlineinherited

obtain entity pointer from entity seed

Template Parameters
EntitySeedentity seed from which to create entity

The default implementation simply forwards to the corresponding method on the grid.

◆ grid() [1/2]

GridType& Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::grid ( )
inlineinherited

Returns reference to the underlying grid.

◆ grid() [2/2]

const GridType& Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::grid ( ) const
inlineinherited

Returns const reference to the underlying grid.

◆ ibegin() [1/2]

IntersectionIteratorType Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::ibegin ( const ElementType &  entity) const
inlineinherited

ibegin of corresponding intersection iterator for given entity

◆ ibegin() [2/2]

template<class GridPartTraits >
IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::ibegin ( const typename Codim< 0 >::EntityType &  entity) const
inlineinherited

ibegin of corresponding intersection iterator for given entity

◆ iend() [1/2]

IntersectionIteratorType Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::iend ( const ElementType &  entity) const
inlineinherited

iend of corresponding intersection iterator for given entity

◆ iend() [2/2]

template<class GridPartTraits >
IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::iend ( const typename Codim< 0 >::EntityType &  entity) const
inlineinherited

iend of corresponding intersection iterator for given entity

◆ indexSet()

const IndexSetType& Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::indexSet ( ) const
inlineinherited

Returns reference to index set of the underlying grid.

◆ level()

int Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::level ( ) const
inlineinherited

Returns maxlevel of the grid.

◆ sequence()

int Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::sequence ( ) const
inlineinherited

return sequence number to update structures depending on the grid part

Note
The default returns DofManager< Grid > :: sequence ()
The default returns DofManager< Grid > :: sequence

Member Data Documentation

◆ dimension

template<class GridPartTraits >
const int Dune::Fem::GridPartInterface< GridPartTraits >::dimension = GridType::dimension
staticinherited

◆ dimensionworld

template<class GridPartTraits >
const int Dune::Fem::GridPartInterface< GridPartTraits >::dimensionworld = GridType::dimensionworld
staticinherited

◆ dofManager_

DofManagerType& Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::dofManager_
protectedinherited

◆ grid_

GridType& Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::grid_
protectedinherited

◆ indexSet_

std::unique_ptr< IndexSetType, typename IndexSetProviderType::Deleter > Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::indexSet_
protectedinherited

◆ indexSetInterfaceType

template<class GridPartTraits >
const InterfaceType Dune::Fem::GridPartInterface< GridPartTraits >::indexSetInterfaceType = Traits::indexSetInterfaceType
staticinherited

◆ indexSetPartitionType

template<class GridPartTraits >
const PartitionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::indexSetPartitionType = Traits::indexSetPartitionType
staticinherited

Maximum Partition type, the index set provides indices for.

◆ leafGridView_

LeafGridView Dune::Fem::AdaptiveGridPartBase< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::leafGridView_
protectedinherited

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