dune-fem 2.12-git
Loading...
Searching...
No Matches
Dune::Fem::LevelGridPart< Grid > Class Template Reference

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

Inheritance diagram for Dune::Fem::LevelGridPart< Grid >:
Inheritance graph

Public Types

typedef BaseType::GridType GridType
 type of Grid implementation
 
typedef BaseType::GridViewType GridViewType
 
typedef BaseType::IntersectionIteratorType IntersectionIteratorType
 type of IntersectionIterator
 
typedef BaseType::IndexSetType IndexSetType
 Index set implementation.
 
typedef BaseType::CommunicationType CommunicationType
 Collective communication.
 
typedef GridPartTraits Traits
 Type of the Traits.
 
typedef Traits::GridPartType GridPartType
 Type of the implementation.
 
typedef GridType Grid
 type of Grid implementation
 
typedef IndexSetType IndexSet
 Index set implementation.
 
typedef CommunicationType Communication
 Collective communication.
 
typedef Traits::TwistUtilityType TwistUtilityType
 Twist utility type.
 
typedef IntersectionIteratorType IntersectionIterator
 type of IntersectionIterator
 
typedef IntersectionIteratorType::Intersection IntersectionType
 type of Intersection
 
typedef IntersectionType Intersection
 type of Intersection
 
typedef GridType::ctype ctype
 

Public Member Functions

int level () const
 Return the level that this grid part was created for.
 
template<class DataHandleImp , class DataType >
void communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const
 corresponding communication method for grid part
 
int boundaryId (const IntersectionType &intersection) const
 return boundary if given an intersection
 
int size (int codim) const
 obtain number of entities in a given codimension
 
int size (const GeometryType &type) const
 obtain number of entities with a given geometry type
 
template<class EntityType >
bool contains (const EntityType &e) const
 Return true if the given entity is contained in this grid view.
 
int overlapSize (int codim) const
 
int ghostSize (int codim) const
 
Construction
 LevelGridPart (GridType &grid, int level)
 
Public member methods
GridType & grid ()
 Returns const reference to the underlying grid.
 
const GridType & grid () const
 Returns const reference to the underlying grid.
 
GridType & grid ()
 
const GridType & grid () const
 Returns const reference to the underlying grid.
 
GridType & grid ()
 Returns reference to the underlying grid.
 
Public member methods
bool isConforming () const
 Dune::Fem::GridPartInterface::isConforming *‍/.
 
const IndexSetType & indexSet () const
 Returns reference to index set of the underlying grid.
 
Codim< codim >::IteratorType begin () const
 obtain begin iterator for the interior-border partition
 
Codim< codim >::template Partition< pitype >::IteratorType begin () const
 obtain begin iterator for the interior-border partition
 
Codim< codim >::IteratorType end () const
 obtain end iterator for the interior-border partition
 
Codim< codim >::template Partition< pitype >::IteratorType end () const
 obtain end iterator for the interior-border partition
 
IntersectionIteratorType ibegin (const typename Codim< 0 >::EntityType &entity) const
 ibegin of corresponding intersection iterator for given entity
 
IntersectionIteratorType iend (const typename Codim< 0 >::EntityType &entity) const
 iend of corresponding intersection iterator for given entity
 
const CommunicationType & comm () const
 obtain collective communication object
 
void communicate (CommDataHandleIF< DataHandle, DataType > &dataHandle, InterfaceType interface, CommunicationDirection direction) const
 corresponding communication method for grid part
 
int sequence () const
 return sequence number to update structures depending on the grid part
 
Codim< EntitySeed::codimension >::EntityType entity (const EntitySeed &seed) const
 obtain entity pointer from entity seed
 
const Entity & convert (const Entity &entity) const
 return sequence number to update structures depending on the grid part
 
 operator const Grid::LevelGridView & () const
 cast to underlying grid view
 
const Grid::LevelGridView & gridView () const
 return reference to internal grid view
 

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 constexpr int dimension = GridType::dimension
 
static constexpr int dimensionworld = GridType::dimensionworld
 
static constexpr bool conforming = Traits::conforming
 

Protected Member Functions

const Codim< codim >::EntityType & convert (const typename Codim< codim >::EntityType &entity) const
 

Protected Attributes

std::conditional_t< storeCopy, Grid::LevelGridView, const Grid::LevelGridView * > gridView_
 
const IndexSetType * indexSet_
 

Member Typedef Documentation

◆ Communication

template<class GridPartTraits >
typedef CommunicationType Dune::Fem::GridPartInterface< GridPartTraits >::Communication
inherited

Collective communication.

◆ CommunicationType

typedef BaseType::CommunicationType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::CommunicationType
inherited

Collective communication.

◆ ctype

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

◆ Grid

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

type of Grid implementation

◆ GridPartType

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

Type of the implementation.

◆ GridType

template<class Grid >
typedef BaseType::GridType Dune::Fem::LevelGridPart< Grid >::GridType

type of Grid implementation

◆ GridViewType

typedef BaseType::GridViewType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::GridViewType
inherited

◆ IndexSet

template<class GridPartTraits >
typedef IndexSetType Dune::Fem::GridPartInterface< GridPartTraits >::IndexSet
inherited

Index set implementation.

◆ IndexSetType

typedef BaseType::IndexSetType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::IndexSetType
inherited

Index set implementation.

◆ Intersection

template<class GridPartTraits >
typedef IntersectionType Dune::Fem::GridPartInterface< GridPartTraits >::Intersection
inherited

type of Intersection

◆ IntersectionIterator

template<class GridPartTraits >
typedef IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionIterator
inherited

◆ IntersectionIteratorType

typedef BaseType::IntersectionIteratorType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::IntersectionIteratorType
inherited

◆ IntersectionType

template<class GridPartTraits >
typedef IntersectionIteratorType::Intersection Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionType
inherited

type of Intersection

◆ Traits

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

Type of the Traits.

◆ TwistUtilityType

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

Twist utility type.

Constructor & Destructor Documentation

◆ LevelGridPart()

template<class Grid >
Dune::Fem::LevelGridPart< Grid >::LevelGridPart ( GridType &  grid,
int  level 
)
inline

Member Function Documentation

◆ begin() [1/2]

Codim< codim >::IteratorType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::begin ( ) const
inlineinherited

obtain begin iterator for the interior-border partition

Template Parameters
codimcodimension for which the iterator is requested

◆ begin() [2/2]

Codim< codim >::template Partition< pitype >::IteratorType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::begin ( ) const
inlineinherited

obtain begin iterator for the interior-border partition

Template Parameters
codimcodimension for which the iterator is requested

◆ boundaryId()

int Dune::Fem::GridPartInterface< GridPartTraits >::boundaryId ( const IntersectionType &  intersection) const
inlineinherited

return boundary if given an intersection

◆ comm()

const CommunicationType & Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::comm ( ) const
inlineinherited

obtain collective communication object

◆ communicate() [1/2]

void Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::communicate ( CommDataHandleIF< DataHandle, DataType > &  dataHandle,
InterfaceType  interface,
CommunicationDirection  direction 
) const
inlineinherited

corresponding communication method for 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

◆ contains()

template<class GridPartTraits >
template<class EntityType >
bool Dune::Fem::GridPartInterface< GridPartTraits >::contains ( const EntityType &  e) const
inlineinherited

Return true if the given entity is contained in this grid view.

Todo:
Currently we call the implementation on the IndexSet. This may lead to suboptimal efficiency.
Note
If the input element e is not an element of the grid, then the result of contains() is undefined.

◆ convert() [1/2]

const Entity & Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::convert ( const Entity &  entity) const
inlineinherited

return sequence number to update structures depending on the grid part

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

◆ convert() [2/2]

const Codim< codim >::EntityType & Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::convert ( const typename Codim< codim >::EntityType &  entity) const
inlineprotectedinherited

◆ end() [1/2]

Codim< codim >::IteratorType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::end ( ) const
inlineinherited

obtain end iterator for the interior-border partition

Template Parameters
codimcodimension for which the iterator is requested

◆ end() [2/2]

Codim< codim >::template Partition< pitype >::IteratorType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::end ( ) const
inlineinherited

obtain end iterator for the interior-border partition

Template Parameters
codimcodimension for which the iterator is requested

◆ entity()

Codim< EntitySeed::codimension >::EntityType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::entity ( const EntitySeed &  seed) const
inlineinherited

obtain entity pointer from entity seed

◆ ghostSize()

template<class GridPartTraits >
int Dune::Fem::GridPartInterface< GridPartTraits >::ghostSize ( int  codim) const
inlineinherited

◆ grid() [1/5]

template<class Grid >
GridType & Dune::Fem::GridPartInterface< GridPartTraits >::grid ( )
inline

Returns reference to the underlying grid.

◆ grid() [2/5]

template<class Grid >
GridType & Dune::Fem::GridView2GridPart< GridView, Implementation, storeCopy >::grid ( )
inline

◆ grid() [3/5]

template<class Grid >
GridType & Dune::Fem::LevelGridPart< Grid >::grid ( )
inline

Returns const reference to the underlying grid.

◆ grid() [4/5]

template<class Grid >
const GridType & Dune::Fem::GridPartInterface< GridPartTraits >::grid ( ) const
inline

Returns const reference to the underlying grid.

◆ grid() [5/5]

template<class Grid >
const GridType & Dune::Fem::GridView2GridPart< GridView, Implementation, storeCopy >::grid ( ) const
inline

Returns const reference to the underlying grid.

◆ gridView()

const Grid::LevelGridView & Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::gridView ( ) const
inlineinherited

return reference to internal grid view

◆ ibegin()

IntersectionIteratorType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::ibegin ( const typename Codim< 0 >::EntityType &  entity) const
inlineinherited

ibegin of corresponding intersection iterator for given entity

◆ iend()

IntersectionIteratorType Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::iend ( const typename Codim< 0 >::EntityType &  entity) const
inlineinherited

iend of corresponding intersection iterator for given entity

◆ indexSet()

const IndexSetType & Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::indexSet ( ) const
inlineinherited

Returns reference to index set of the underlying grid.

◆ isConforming()

bool Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::isConforming ( ) const
inlineinherited

◆ level()

template<class Grid >
int Dune::Fem::LevelGridPart< Grid >::level ( ) const
inline

Return the level that this grid part was created for.

Note
This is not an interface method!

◆ operator const Grid::LevelGridView &()

Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::operator const Grid::LevelGridView & ( ) const
inlineinherited

cast to underlying grid view

◆ overlapSize()

template<class GridPartTraits >
int Dune::Fem::GridPartInterface< GridPartTraits >::overlapSize ( int  codim) const
inlineinherited

◆ sequence()

int Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::sequence ( ) const
inlineinherited

return sequence number to update structures depending on the grid part

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

◆ size() [1/2]

template<class GridPartTraits >
int Dune::Fem::GridPartInterface< GridPartTraits >::size ( const GeometryType &  type) const
inlineinherited

obtain number of entities with a given geometry type

◆ size() [2/2]

template<class GridPartTraits >
int Dune::Fem::GridPartInterface< GridPartTraits >::size ( int  codim) const
inlineinherited

obtain number of entities in a given codimension

Member Data Documentation

◆ conforming

template<class GridPartTraits >
constexpr bool Dune::Fem::GridPartInterface< GridPartTraits >::conforming = Traits::conforming
staticconstexprinherited

◆ dimension

template<class GridPartTraits >
constexpr int Dune::Fem::GridPartInterface< GridPartTraits >::dimension = GridType::dimension
staticconstexprinherited

◆ dimensionworld

template<class GridPartTraits >
constexpr int Dune::Fem::GridPartInterface< GridPartTraits >::dimensionworld = GridType::dimensionworld
staticconstexprinherited

◆ gridView_

std::conditional_t<storeCopy, Grid::LevelGridView , const Grid::LevelGridView * > Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::gridView_
protectedinherited

◆ indexSet_

const IndexSetType* Dune::Fem::GridView2GridPart< Grid::LevelGridView , LevelGridPart< Grid > , storeCopy >::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.


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