|
dune-pdelab 2.9
|
Partition view (or entity set) of a grid view. More...
#include <dune/pdelab/common/partitionviewentityset.hh>

Public Types | |
| using | Traits = PartitionViewEntitySetTraits< GV, P > |
| using | Partitions = typename Traits::Partitions |
| using | Grid = typename Traits::Grid |
| using | GridView = typename Traits::GridView |
| using | IndexSet = typename Traits::IndexSet |
| using | BaseIndexSet = typename Traits::BaseIndexSet |
| using | Element = typename Traits::Element |
| using | Intersection = typename Traits::Intersection |
| using | IntersectionIterator = typename Traits::IntersectionIterator |
| using | Communication = typename Traits::Communication |
| using | CodimMask = typename Traits::CodimMask |
| using | CoordinateField = typename Traits::CoordinateField |
| using | size_type = typename Traits::size_type |
| using | dim_type = typename Traits::dim_type |
| using | ctype = CoordinateField |
| template<dim_type codim> | |
| using | Codim = typename Traits::template Codim< codim > |
Public Member Functions | |
| const Grid & | grid () const |
| const IndexSet & | indexSet () const |
| Returns the IndexSet of this EntitySet. | |
| const BaseIndexSet & | baseIndexSet () const |
| Returns the IndexSet of the underlying GridView. | |
| template<dim_type codim> | |
| Codim< codim >::Iterator | begin () const |
| template<dim_type codim> | |
| Codim< codim >::Iterator | end () const |
| template<dim_type codim, PartitionIteratorType pitype> | |
| GV::template Codim< codim >::template Partition< pitype >::Iterator | begin () const |
| template<dim_type codim, PartitionIteratorType pitype> | |
| GV::template Codim< codim >::template Partition< pitype >::Iterator | end () const |
| size_type | size (dim_type codim) const |
| size_type | size (const GeometryType >) const |
| template<typename Entity > | |
| bool | contains (const Entity &e) const |
| bool | contains (dim_type codim) const |
| bool | contains (const GeometryType >) const |
| IntersectionIterator | ibegin (const typename Codim< 0 >::Entity &entity) const |
| IntersectionIterator | iend (const typename Codim< 0 >::Entity &entity) const |
| const Communication & | comm () const |
| size_type | overlapSize (dim_type codim) const |
| Returns the overlap size of this EntitySet, which depends on its PartitionSet. | |
| size_type | ghostSize (dim_type codim) const |
| Returns the ghost size of this EntitySet, which depends on its PartitionSet. | |
| template<typename DataHandle > | |
| void | communicate (DataHandle &data, InterfaceType iftype, CommunicationDirection dir) const |
| const GridView & | gridView () const |
| Returns the underlying GridView. | |
| PartitionViewEntitySet (const GridView &gv, CodimMask supported_codims) | |
| PartitionViewEntitySet (const GridView &gv, bool initialize=true) | |
| void | reset () |
| Reset this EntitySet, which removes all entities from it. | |
| void | addCodim (dim_type codim) |
| Add all entities of the given codim to this EntitySet. | |
| void | removeCodim (dim_type codim) |
| Remove all entities of the given codim from this EntitySet. | |
| bool | needsUpdate () const |
| Returns true if you need to call update on this EntitySet before using it. | |
| bool | update (bool force=false) |
| Update the internal state of this EntitySet. | |
| bool | operator== (const PartitionViewEntitySet &other) const |
| Compare to another partition view. | |
| bool | operator!= (const PartitionViewEntitySet &other) const |
| Compare to another partition view. | |
Static Public Member Functions | |
| static constexpr Partitions | partitions () |
| static constexpr CodimMask | allCodims () |
Static Public Attributes | |
| static const bool | conforming = Traits::conforming |
| static const dim_type | dimension = Traits::dimension |
| static const dim_type | dimensionworld = Traits::dimensionworld |
Detailed Description
class Dune::PDELab::PartitionViewEntitySet< GV, P >
Partition view (or entity set) of a grid view.
The partition view creates an index set for the given partition which allows to exclude unused codimensions. Additionally, it allows to retreive a unique index for every entity contained in the index set (Similar to the MCMG mapper functionality). This is particularly useful when working with Local Finite Elements that do not attach DOFs to all codimensions.
- Note
- A copy of this class is a shallow copy on the underlying index set
- Template Parameters
-
GV Grid view P PartitionSet to restrict view of the entity set
Member Typedef Documentation
◆ BaseIndexSet
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::BaseIndexSet = typename Traits::BaseIndexSet |
◆ Codim
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::Codim = typename Traits::template Codim<codim> |
◆ CodimMask
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::CodimMask = typename Traits::CodimMask |
◆ Communication
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::Communication = typename Traits::Communication |
◆ CoordinateField
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::CoordinateField = typename Traits::CoordinateField |
◆ ctype
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::ctype = CoordinateField |
◆ dim_type
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::dim_type = typename Traits::dim_type |
◆ Element
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::Element = typename Traits::Element |
◆ Grid
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::Grid = typename Traits::Grid |
◆ GridView
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::GridView = typename Traits::GridView |
◆ IndexSet
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::IndexSet = typename Traits::IndexSet |
◆ Intersection
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::Intersection = typename Traits::Intersection |
◆ IntersectionIterator
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::IntersectionIterator = typename Traits::IntersectionIterator |
◆ Partitions
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::Partitions = typename Traits::Partitions |
◆ size_type
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::size_type = typename Traits::size_type |
◆ Traits
| using Dune::PDELab::PartitionViewEntitySet< GV, P >::Traits = PartitionViewEntitySetTraits<GV,P> |
Constructor & Destructor Documentation
◆ PartitionViewEntitySet() [1/2]
|
inline |
◆ PartitionViewEntitySet() [2/2]
|
inlineexplicit |
Member Function Documentation
◆ addCodim()
|
inline |
Add all entities of the given codim to this EntitySet.
◆ allCodims()
|
inlinestaticconstexpr |
◆ baseIndexSet()
|
inline |
◆ begin() [1/2]
|
inline |
◆ begin() [2/2]
|
inline |
◆ comm()
|
inline |
◆ communicate()
|
inline |
◆ contains() [1/3]
|
inline |
◆ contains() [2/3]
|
inline |
◆ contains() [3/3]
|
inline |
◆ end() [1/2]
|
inline |
◆ end() [2/2]
|
inline |
◆ ghostSize()
|
inline |
Returns the ghost size of this EntitySet, which depends on its PartitionSet.
◆ grid()
|
inline |
◆ gridView()
|
inline |
Returns the underlying GridView.
◆ ibegin()
|
inline |
◆ iend()
|
inline |
◆ indexSet()
|
inline |
Returns the IndexSet of this EntitySet.
◆ needsUpdate()
|
inline |
Returns true if you need to call update on this EntitySet before using it.
◆ operator!=()
|
inline |
Compare to another partition view.
◆ operator==()
|
inline |
Compare to another partition view.
This check only succeeds for copies of this class
- Parameters
-
other Another partition view
- Returns
- true if other shares the same index set as this
- false otherwise
◆ overlapSize()
|
inline |
Returns the overlap size of this EntitySet, which depends on its PartitionSet.
◆ partitions()
|
inlinestaticconstexpr |
◆ removeCodim()
|
inline |
Remove all entities of the given codim from this EntitySet.
◆ reset()
|
inline |
Reset this EntitySet, which removes all entities from it.
◆ size() [1/2]
|
inline |
◆ size() [2/2]
|
inline |
◆ update()
|
inline |
Update the internal state of this EntitySet.
- Parameters
-
force If true, forces an update even if the EntitySet parameters have not changed. This is e.g. required if the underlying grid has changed due to adaptivity.
- Returns
- Returns true if the state of the EntitySet was changed by this method.
Member Data Documentation
◆ conforming
|
static |
◆ dimension
|
static |
◆ dimensionworld
|
static |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8