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

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

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

Public Types

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

Public Member Functions

 AdaptiveLeafGridPart (GridType &grid)
 Constructor.
 
 AdaptiveLeafGridPart (GridType &grid, const GridViewType *gridView)
 
 AdaptiveLeafGridPart (GridType &grid, const NoIndexSetType &dummy)
 copy constructor (for construction from IndexSet, no public use)
 
 AdaptiveLeafGridPart (const AdaptiveLeafGridPart &other)=default
 copy constructor
 
 ~AdaptiveLeafGridPart ()
 
const IndexSetType & indexSet () const
 Returns reference to index set of the underlying grid.
 
Codim< codim >::IteratorType begin () const
 Begin iterator on the leaf level.
 
Codim< codim >::template Partition< pitype >::IteratorType begin () const
 Begin iterator on the leaf level.
 
Codim< codim >::IteratorType end () const
 Begin iterator on the leaf level.
 
Codim< codim >::template Partition< pitype >::IteratorType end () const
 End iterator on the leaf level.
 
IntersectionIteratorType ibegin (const ElementType &entity) const
 ibegin of corresponding intersection iterator for given entity
 
IntersectionIteratorType ibegin (const typename Codim< 0 >::EntityType &entity) const
 ibegin of corresponding intersection iterator for given entity
 
IntersectionIteratorType iend (const ElementType &entity) const
 iend of corresponding intersection iterator for given entity
 
IntersectionIteratorType iend (const typename Codim< 0 >::EntityType &entity) const
 iend of corresponding intersection iterator for given entity
 
int level () const
 Returns maxlevel of the grid.
 
decltype(auto) communicate (CommDataHandleIF< DataHandle, Data > &data, InterfaceType iftype, CommunicationDirection dir) const
 corresponding communication method for this grid part
 
template<class DataHandleImp , class DataType >
void communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const
 corresponding communication method for grid part
 
const GridType & grid () const
 Returns const reference to the underlying grid.
 
GridType & grid ()
 Returns reference to the underlying grid.
 
const CollectiveCommunicationType & comm () const
 obtain collective communication object
 
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::EntityType entity (const EntitySeed &seed) const
 obtain entity pointer from entity seed
 
template<class Entity >
const Entity & convert (const Entity &entity) const
 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.
 
int sequence () const
 return sequence number to update structures depending on the grid part
 
int boundaryId (const IntersectionType &intersection) const
 obtain entity pointer from entity seed
 
const GridViewType & gridView () const
 

Public Attributes

std::shared_ptr< GridViewType > gridViewStorage_
 
const GridViewType * gridView_
 

Static Public Attributes

static const PartitionIteratorType indexSetPartitionType = Traits::indexSetPartitionType
 Maximum Partition type, the index set provides indices for.
 
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_
 

Member Typedef Documentation

◆ BoundaryIdProviderType

template<class GridPartTraits >
typedef BoundaryIdProvider< GridType > Dune::Fem::GridPartDefault< GridPartTraits >::BoundaryIdProviderType
inherited

type of boundary id provider specialized for each grid type

◆ CollectiveCommunicationType

template<class GridPartTraits >
typedef Traits::CollectiveCommunicationType Dune::Fem::GridPartDefault< GridPartTraits >::CollectiveCommunicationType
inherited

Collective communication.

◆ ctype

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

◆ DofManagerType

template<class GridPartTraits >
typedef DofManager< GridType > Dune::Fem::GridPartDefault< GridPartTraits >::DofManagerType
inherited

type of DofManager

◆ ElementType

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

◆ GridPartType

template<class Grid , PartitionIteratorType idxpitype, bool onlyCodimensionZero>
typedef BaseType::GridPartType Dune::Fem::AdaptiveLeafGridPart< Grid, idxpitype, onlyCodimensionZero >::GridPartType

◆ GridType

template<class Grid , PartitionIteratorType idxpitype, bool onlyCodimensionZero>
typedef BaseType::GridType Dune::Fem::AdaptiveLeafGridPart< Grid, idxpitype, onlyCodimensionZero >::GridType

◆ GridViewType

template<class Grid , PartitionIteratorType idxpitype, bool onlyCodimensionZero>
typedef BaseType::GridViewType Dune::Fem::AdaptiveLeafGridPart< Grid, idxpitype, onlyCodimensionZero >::GridViewType

◆ IndexSetProviderType

typedef SingletonList< const GridType*, IndexSetType > Dune::Fem::AdaptiveGridPartBase< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::IndexSetProviderType
protectedinherited

◆ IndexSetType

typedef Traits::IndexSetType Dune::Fem::AdaptiveGridPartBase< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::IndexSetType
inherited

The leaf index set of the grid implementation.

◆ IntersectionIteratorType

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

type of intersection iterator

◆ IntersectionType

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

type of intersection

◆ NoIndexSetType

template<class Grid , PartitionIteratorType idxpitype, bool onlyCodimensionZero>
typedef BaseType::NoIndexSetType Dune::Fem::AdaptiveLeafGridPart< Grid, idxpitype, onlyCodimensionZero >::NoIndexSetType

◆ Traits

typedef AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > Dune::Fem::AdaptiveGridPartBase< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::Traits
inherited

Type definitions.

◆ TwistUtilityType

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

Twist utility type.

Constructor & Destructor Documentation

◆ AdaptiveLeafGridPart() [1/4]

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

Constructor.

◆ AdaptiveLeafGridPart() [2/4]

template<class Grid , PartitionIteratorType idxpitype, bool onlyCodimensionZero>
Dune::Fem::AdaptiveLeafGridPart< Grid, idxpitype, onlyCodimensionZero >::AdaptiveLeafGridPart ( GridType &  grid,
const GridViewType *  gridView 
)
inline

◆ AdaptiveLeafGridPart() [3/4]

template<class Grid , PartitionIteratorType idxpitype, bool onlyCodimensionZero>
Dune::Fem::AdaptiveLeafGridPart< Grid, idxpitype, onlyCodimensionZero >::AdaptiveLeafGridPart ( GridType &  grid,
const NoIndexSetType &  dummy 
)
inline

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

◆ AdaptiveLeafGridPart() [4/4]

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

copy constructor

◆ ~AdaptiveLeafGridPart()

template<class Grid , PartitionIteratorType idxpitype, bool onlyCodimensionZero>
Dune::Fem::AdaptiveLeafGridPart< Grid, idxpitype, onlyCodimensionZero >::~AdaptiveLeafGridPart ( )
inline

Member Function Documentation

◆ asImp() [1/2]

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

◆ asImp() [2/2]

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

◆ begin() [1/2]

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

Begin iterator on the leaf level.

◆ begin() [2/2]

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

Begin iterator on the leaf level.

◆ boundaryId()

template<class GridPartTraits >
int Dune::Fem::GridPartDefault< GridPartTraits >::boundaryId ( const IntersectionType &  intersection) const
inlineinherited

obtain entity pointer from entity seed

◆ comm()

template<class GridPartTraits >
const CollectiveCommunicationType & Dune::Fem::GridPartDefault< GridPartTraits >::comm ( ) const
inlineinherited

obtain collective communication object

◆ communicate() [1/2]

decltype(auto) Dune::Fem::AdaptiveGridPartBase< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::communicate ( CommDataHandleIF< DataHandle, Data > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const
inlineinherited

corresponding communication method for this grid part

◆ communicate() [2/2]

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()

template<class GridPartTraits >
template<class Entity >
const Entity & Dune::Fem::GridPartDefault< GridPartTraits >::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< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::end ( ) const
inlineinherited

Begin iterator on the leaf level.

◆ end() [2/2]

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

End iterator on the leaf level.

◆ entity()

template<class GridPartTraits >
template<class EntitySeed >
Traits::template Codim< EntitySeed::codimension >::EntityType Dune::Fem::GridPartDefault< GridPartTraits >::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]

template<class GridPartTraits >
GridType & Dune::Fem::GridPartDefault< GridPartTraits >::grid ( )
inlineinherited

Returns reference to the underlying grid.

◆ grid() [2/2]

template<class GridPartTraits >
const GridType & Dune::Fem::GridPartDefault< GridPartTraits >::grid ( ) const
inlineinherited

Returns const reference to the underlying grid.

◆ gridView()

const GridViewType & Dune::Fem::AddGridView< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::gridView ( ) const
inlineinherited

◆ ibegin() [1/2]

IntersectionIteratorType Dune::Fem::AdaptiveGridPartBase< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::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< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::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< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::indexSet ( ) const
inlineinherited

Returns reference to index set of the underlying grid.

◆ level()

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

Returns maxlevel of the grid.

◆ sequence()

template<class GridPartTraits >
int Dune::Fem::GridPartDefault< GridPartTraits >::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_

template<class GridPartTraits >
DofManagerType& Dune::Fem::GridPartDefault< GridPartTraits >::dofManager_
protectedinherited

◆ grid_

template<class GridPartTraits >
GridType& Dune::Fem::GridPartDefault< GridPartTraits >::grid_
protectedinherited

◆ gridView_

const GridViewType* Dune::Fem::AddGridView< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::gridView_
inherited

◆ gridViewStorage_

std::shared_ptr<GridViewType> Dune::Fem::AddGridView< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::gridViewStorage_
inherited

◆ indexSet_

std::unique_ptr< IndexSetType, typename IndexSetProviderType::Deleter > Dune::Fem::AdaptiveGridPartBase< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::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< AdaptiveLeafGridPartTraits< Grid, idxpitype, onlyCodimensionZero > >::leafGridView_
protectedinherited

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