dune-fem
2.4.1-rc
|
Interface for the GridPart classes A GridPart class allows to access only a specific subset of a grid's entities. A GridPart implementation provides the corresponding index set and a begin/end iterator pair for accessing those entities, the corresponding intersection iterators and a appropriate communication method. GridParts are used to parametrize spaces (see DiscreteFunctionSpaceDefault [in dune-fem]). More...
#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/gridpart/common/gridpart.hh>
Classes | |
struct | Codim |
Public Types | |
typedef GridPartTraits | Traits |
Type of the Traits. More... | |
typedef Traits::GridPartType | GridPartType |
Type of the implementation. More... | |
typedef Traits::GridType | GridType |
type of Grid implementation More... | |
typedef Traits::IndexSetType | IndexSetType |
Index set implementation. More... | |
typedef Traits::CollectiveCommunicationType | CollectiveCommunicationType |
Collective communication. More... | |
typedef Traits::TwistUtilityType | TwistUtilityType |
Twist utility type. More... | |
typedef Traits::IntersectionIteratorType | IntersectionIteratorType |
type of IntersectionIterator More... | |
typedef IntersectionIteratorType::Intersection | IntersectionType |
type of Intersection More... | |
typedef PoliciesType::GridViewType | GridViewType |
typedef GridType::ctype | ctype |
Public Member Functions | |
const GridType & | grid () const |
Returns const reference to the underlying grid. More... | |
GridType & | grid () |
Returns reference to the underlying grid. More... | |
GridViewType | gridView () const |
convert grid part into a dune grid view More... | |
const IndexSetType & | indexSet () const |
Returns reference to index set of the underlying grid. More... | |
template<int codim> | |
Codim< codim >::IteratorType | begin () const |
obtain begin iterator for the interior-border partition More... | |
template<int codim, PartitionIteratorType pitype> | |
Codim< codim >::template Partition< pitype >::IteratorType | begin () const |
obtain begin iterator for the given partition More... | |
template<int codim> | |
Codim< codim >::IteratorType | end () const |
obtain end iterator for the interior-border partition More... | |
template<int codim, PartitionIteratorType pitype> | |
Codim< codim >::template Partition< pitype >::IteratorType | end () const |
obtain end iterator for the given partition More... | |
int | level () const |
Level of the grid part. 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... | |
int | boundaryId (const IntersectionType &intersection) const |
return boundary if given an intersection More... | |
const CollectiveCommunicationType & | comm () const |
obtain collective communication object More... | |
template<class DataHandleImp , class DataType > | |
void | communicate (CommDataHandleIF< DataHandleImp, DataType > &data, InterfaceType iftype, CommunicationDirection dir) const |
corresponding communication method for grid part More... | |
template<class EntitySeed > | |
Codim< EntitySeed::codimension >::EntityType | entity (const EntitySeed &seed) const |
obtain entity pointer from entity seed More... | |
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. More... | |
int | sequence () const |
return sequence number to update structures depending on the 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 Member Functions | |
GridPartInterface () | |
do not create explicit instances of this class More... | |
Interface for the GridPart classes A GridPart class allows to access only a specific subset of a grid's entities. A GridPart implementation provides the corresponding index set and a begin/end iterator pair for accessing those entities, the corresponding intersection iterators and a appropriate communication method. GridParts are used to parametrize spaces (see DiscreteFunctionSpaceDefault [in dune-fem]).
typedef Traits::CollectiveCommunicationType Dune::Fem::GridPartInterface< GridPartTraits >::CollectiveCommunicationType |
Collective communication.
typedef GridType::ctype Dune::Fem::GridPartInterface< GridPartTraits >::ctype |
typedef Traits::GridPartType Dune::Fem::GridPartInterface< GridPartTraits >::GridPartType |
Type of the implementation.
typedef Traits::GridType Dune::Fem::GridPartInterface< GridPartTraits >::GridType |
type of Grid implementation
typedef PoliciesType::GridViewType Dune::Fem::GridPartInterface< GridPartTraits >::GridViewType |
typedef Traits::IndexSetType Dune::Fem::GridPartInterface< GridPartTraits >::IndexSetType |
Index set implementation.
typedef Traits::IntersectionIteratorType Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionIteratorType |
type of IntersectionIterator
typedef IntersectionIteratorType::Intersection Dune::Fem::GridPartInterface< GridPartTraits >::IntersectionType |
type of Intersection
typedef GridPartTraits Dune::Fem::GridPartInterface< GridPartTraits >::Traits |
Type of the Traits.
typedef Traits::TwistUtilityType Dune::Fem::GridPartInterface< GridPartTraits >::TwistUtilityType |
Twist utility type.
|
inlineprotected |
do not create explicit instances of this class
|
inline |
obtain begin iterator for the interior-border partition
codim | codimension for which the iterator is requested |
|
inline |
obtain begin iterator for the given partition
codim | codimension for which the iterator is requested |
pitype | requested partition iterator type |
|
inline |
return boundary if given an intersection
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::boundaryId().
|
inline |
obtain collective communication object
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::comm().
|
inline |
corresponding communication method for grid part
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::communicate().
|
inline |
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.
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::convert().
|
inline |
obtain end iterator for the interior-border partition
codim | codimension for which the iterator is requested |
|
inline |
obtain end iterator for the given partition
codim | codimension for which the iterator is requested |
pitype | requested partition iterator type |
|
inline |
obtain entity pointer from entity seed
Referenced by Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::convert(), Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::entity(), and Dune::Fem::GridEntityAccess< Dune::Entity< codim, dim, Grid, EntityImpl > >::gridEntity().
|
inline |
Returns const reference to the underlying grid.
Referenced by Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::comm(), Dune::Fem::GridPartDefault< IntersectionAdaptiveLeafGridPartTraits< Grid, idxpitype > >::entity(), and Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::grid().
|
inline |
Returns reference to the underlying grid.
|
inline |
convert grid part into a dune grid view
|
inline |
ibegin of corresponding intersection iterator for given entity
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::ibegin().
|
inline |
iend of corresponding intersection iterator for given entity
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::iend().
|
inline |
Returns reference to index set of the underlying grid.
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::indexSet().
|
inline |
Level of the grid part.
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::level().
|
inline |
return sequence number to update structures depending on the grid part
Referenced by Dune::Fem::GridPartInterface< GridView2GridPartTraits< GridType::LeafGridView, LeafGridPart< GridType > > >::sequence().
|
static |
|
static |
|
static |
|
static |
Maximum Partition type, the index set provides indices for.