dune-fem  2.4.1-rc
Classes | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::AdaptiveGridPartBase< TraitsImp > Class Template Reference

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

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/gridpart/adaptiveleafgridpart.hh>

Inheritance diagram for Dune::Fem::AdaptiveGridPartBase< TraitsImp >:
Inheritance graph

Classes

struct  Codim
 Struct providing types of the leaf iterators on codimension codim. More...
 

Public Types

typedef TraitsImp Traits
 Type definitions. More...
 
typedef Traits::GridPartType GridPartType
 Grid implementation type. More...
 
typedef Traits::GridType GridType
 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 Traits::CollectiveCommunicationType CollectiveCommunicationType
 Collective communication. More...
 
typedef DofManager< GridTypeDofManagerType
 type of DofManager More...
 
typedef Traits::TwistUtilityType TwistUtilityType
 Twist utility type. More...
 
typedef PoliciesType::GridViewType GridViewType
 
typedef GridType::ctype ctype
 

Public Member Functions

 AdaptiveGridPartBase (GridType &grid)
 constructor More...
 
 AdaptiveGridPartBase (const ThisType &other)
 Copy Constructor. More...
 
 ~AdaptiveGridPartBase ()
 Destrcutor removeing index set, if only one reference left, index set removed. More...
 
const IndexSetTypeindexSet () const
 Returns reference to index set of the underlying grid. More...
 
template<int codim>
Codim< codim >::IteratorType begin () const
 Begin iterator on the leaf level. More...
 
template<int codim, PartitionIteratorType pitype>
Codim< codim >::template Partition< pitype >::IteratorType begin () const
 Begin iterator on the leaf level. More...
 
template<int codim>
Codim< codim >::IteratorType end () const
 Begin iterator on the leaf level. More...
 
template<int codim, PartitionIteratorType pitype>
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 iend (const ElementType &entity) const
 iend of corresponding intersection iterator for given entity More...
 
int boundaryId (const IntersectionType &intersection) const
 
int level () const
 Returns maxlevel of the grid. More...
 
template<class DataHandle , class Data >
void communicate (CommDataHandleIF< DataHandle, Data > &data, InterfaceType iftype, CommunicationDirection dir) const
 corresponding communication method for this grid part More...
 
const GridTypegrid () const
 Returns const reference to the underlying grid. More...
 
GridTypegrid ()
 Returns reference to the underlying grid. More...
 
const CollectiveCommunicationTypecomm () 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
 
GridViewType gridView () const
 convert grid part into a dune grid view More...
 
IntersectionIteratorType ibegin (const typename Codim< 0 >::EntityType &entity) const
 ibegin 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...
 
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
 Maximum Partition type, the index set provides indices for. More...
 
static const InterfaceType indexSetInterfaceType
 
static const int dimension
 
static const int dimensionworld
 

Protected Member Functions

const GridPartTypeasImp () const
 

Protected Attributes

GridTypegrid_
 
DofManagerTypedofManager_
 

Detailed Description

template<class TraitsImp>
class Dune::Fem::AdaptiveGridPartBase< TraitsImp >

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

The underlying index set is defined for entities of all codimensions.

Member Typedef Documentation

typedef Traits::CollectiveCommunicationType Dune::Fem::GridPartDefault< TraitsImp >::CollectiveCommunicationType
inherited

Collective communication.

typedef GridType::ctype Dune::Fem::GridPartInterface< TraitsImp >::ctype
inherited
typedef DofManager< GridType > Dune::Fem::GridPartDefault< TraitsImp >::DofManagerType
inherited

type of DofManager

template<class TraitsImp>
typedef Traits :: GridPartType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::GridPartType

Grid implementation type.

template<class TraitsImp>
typedef Traits :: GridType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::GridType

Grid implementation type.

typedef PoliciesType::GridViewType Dune::Fem::GridPartInterface< TraitsImp >::GridViewType
inherited
template<class TraitsImp>
typedef Traits :: IndexSetType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::IndexSetType

The leaf index set of the grid implementation.

template<class TraitsImp>
typedef Traits::IntersectionIteratorType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::IntersectionIteratorType

type of intersection iterator

template<class TraitsImp>
typedef IntersectionIteratorType::Intersection Dune::Fem::AdaptiveGridPartBase< TraitsImp >::IntersectionType

type of intersection

template<class TraitsImp>
typedef TraitsImp Dune::Fem::AdaptiveGridPartBase< TraitsImp >::Traits

Type definitions.

typedef Traits::TwistUtilityType Dune::Fem::GridPartInterface< TraitsImp >::TwistUtilityType
inherited

Twist utility type.

Constructor & Destructor Documentation

template<class TraitsImp>
Dune::Fem::AdaptiveGridPartBase< TraitsImp >::AdaptiveGridPartBase ( GridType grid)
inlineexplicit

constructor

template<class TraitsImp>
Dune::Fem::AdaptiveGridPartBase< TraitsImp >::AdaptiveGridPartBase ( const ThisType other)
inline

Copy Constructor.

template<class TraitsImp>
Dune::Fem::AdaptiveGridPartBase< TraitsImp >::~AdaptiveGridPartBase ( )
inline

Destrcutor removeing index set, if only one reference left, index set removed.

Member Function Documentation

template<class TraitsImp>
const GridPartType& Dune::Fem::AdaptiveGridPartBase< TraitsImp >::asImp ( ) const
inlineprotected
template<class TraitsImp>
template<int codim>
Codim< codim >:: IteratorType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::begin ( ) const
inline

Begin iterator on the leaf level.

template<class TraitsImp>
template<int codim, PartitionIteratorType pitype>
Codim< codim >:: template Partition< pitype >:: IteratorType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::begin ( ) const
inline

Begin iterator on the leaf level.

template<class TraitsImp>
int Dune::Fem::AdaptiveGridPartBase< TraitsImp >::boundaryId ( const IntersectionType intersection) const
inline
const CollectiveCommunicationType& Dune::Fem::GridPartDefault< TraitsImp >::comm ( ) const
inlineinherited

obtain collective communication object

template<class TraitsImp>
template<class DataHandle , class Data >
void Dune::Fem::AdaptiveGridPartBase< TraitsImp >::communicate ( CommDataHandleIF< DataHandle, Data > &  data,
InterfaceType  iftype,
CommunicationDirection  dir 
) const
inline

corresponding communication method for this grid part

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

corresponding communication method for grid part

const Entity& Dune::Fem::GridPartDefault< TraitsImp >::convert ( const Entity &  entity) const
inlineinherited

Note
The default implementation does nothing but return the same entity
template<class TraitsImp>
template<int codim>
Codim< codim >:: IteratorType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::end ( ) const
inline

Begin iterator on the leaf level.

template<class TraitsImp>
template<int codim, PartitionIteratorType pitype>
Codim< codim >:: template Partition< pitype >:: IteratorType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::end ( ) const
inline

End iterator on the leaf level.

Traits::template Codim< EntitySeed::codimension >::EntityType Dune::Fem::GridPartDefault< TraitsImp >::entity ( const EntitySeed &  seed) const
inlineinherited

Template Parameters
EntitySeedentity seed from which to create entity

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

const GridType& Dune::Fem::GridPartDefault< TraitsImp >::grid ( ) const
inlineinherited

Returns const reference to the underlying grid.

GridType& Dune::Fem::GridPartDefault< TraitsImp >::grid ( )
inlineinherited

Returns reference to the underlying grid.

GridViewType Dune::Fem::GridPartInterface< TraitsImp >::gridView ( ) const
inlineinherited

convert grid part into a dune grid view

Deprecated:
"gridPart.gridView() is deprecated, use direct cast to GridPart::GridViewType instead"
template<class TraitsImp>
IntersectionIteratorType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::ibegin ( const ElementType &  entity) const
inline

ibegin of corresponding intersection iterator for given entity

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

ibegin of corresponding intersection iterator for given entity

template<class TraitsImp>
IntersectionIteratorType Dune::Fem::AdaptiveGridPartBase< TraitsImp >::iend ( const ElementType &  entity) const
inline

iend of corresponding intersection iterator for given entity

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

iend of corresponding intersection iterator for given entity

template<class TraitsImp>
const IndexSetType& Dune::Fem::AdaptiveGridPartBase< TraitsImp >::indexSet ( ) const
inline

Returns reference to index set of the underlying grid.

template<class TraitsImp>
int Dune::Fem::AdaptiveGridPartBase< TraitsImp >::level ( ) const
inline

Returns maxlevel of the grid.

int Dune::Fem::GridPartDefault< TraitsImp >::sequence ( ) const
inlineinherited

Note
The default returns DofManager< Grid > :: sequence

Member Data Documentation

const int Dune::Fem::GridPartInterface< TraitsImp >::dimension
staticinherited
const int Dune::Fem::GridPartInterface< TraitsImp >::dimensionworld
staticinherited
DofManagerType& Dune::Fem::GridPartDefault< TraitsImp >::dofManager_
protectedinherited
GridType& Dune::Fem::GridPartDefault< TraitsImp >::grid_
protectedinherited
const InterfaceType Dune::Fem::GridPartInterface< TraitsImp >::indexSetInterfaceType
staticinherited
const PartitionIteratorType Dune::Fem::GridPartInterface< TraitsImp >::indexSetPartitionType
staticinherited

Maximum Partition type, the index set provides indices for.


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