Dune::SubGridPart< GridImp > Class Template Reference

A class to represent a part of a grid, similar to a GridView. More...

#include <SubGridPart.hpp>

Classes

struct  Codim
 Codim Structure. More...
 

Public Types

enum  { conforming = Traits::conforming }
 
enum  { dimension = GridImp::dimension }
 
using Traits = SubGridPartTraits< GridImp >
 
using Grid = typename Traits::Grid
 type of the grid More...
 
using IndexSet = typename Traits ::IndexSet
 type of the index set More...
 
using Intersection = typename Traits ::Intersection
 type of the intersection More...
 
using IntersectionIterator = typename Traits ::IntersectionIterator
 type of the intersection iterator More...
 
using CollectiveCommunication = typename Traits ::CollectiveCommunication
 type of the collective communication More...
 

Public Member Functions

 SubGridPart (const Grid &grid, std::vector< typename Codim< 0 >::Entity::EntitySeed > &&seeds, const bool overlap=true)
 
const Gridgrid () const
 obtain a const reference to the underlying hierarchic grid More...
 
int size (int codim) const
 obtain the index set More...
 
template<int cd>
Codim< cd >::Iterator begin () const
 obtain number of entities with a given geometry type More...
 
template<int cd>
Codim< cd >::Iterator end () const
 obtain end iterator for this view More...
 
template<int cd, PartitionIteratorType pit>
Codim< cd >::template Partition< pit >::Iterator begin () const
 obtain begin iterator for this view More...
 
template<int cd, PartitionIteratorType pit>
Codim< cd >::template Partition< pit >::Iterator end () const
 obtain end iterator for this view More...
 
IntersectionIterator ibegin (const typename Codim< 0 >::Entity &entity) const
 obtain begin intersection iterator with respect to this view More...
 
IntersectionIterator iend (const typename Codim< 0 >::Entity &entity) const
 obtain end intersection iterator with respect to this view More...
 
const CollectiveCommunicationcomm () const
 obtain collective communication object More...
 
int overlapSize (int codim) const
 Return size of the overlap region for a given codim on the grid view.
More...
 
int ghostSize (int codim) const
 Return size of the ghost region for a given codim on the grid view.
More...
 

Detailed Description

template<class GridImp>
class Dune::SubGridPart< GridImp >

A class to represent a part of a grid, similar to a GridView.

The differences from a GridView are:

  • The SubGridPart consists of a set of elements (codim 0 entities), considered to be Interior, and their neighbours, considered to be Overlap.
  • When iterating over intersections on the elements, and accessing the outside() elements, this can give you access to grid entities that are not in the SubGridPart itself. This can only happen for intersections in the Overlap part. For intersections of elements in the Interior part, the outside() element will be either Interior or Overlap.

Member Typedef Documentation

◆ CollectiveCommunication

template<class GridImp >
using Dune::SubGridPart< GridImp >::CollectiveCommunication = typename Traits ::CollectiveCommunication

type of the collective communication

◆ Grid

template<class GridImp >
using Dune::SubGridPart< GridImp >::Grid = typename Traits::Grid

type of the grid

◆ IndexSet

template<class GridImp >
using Dune::SubGridPart< GridImp >::IndexSet = typename Traits ::IndexSet

type of the index set

◆ Intersection

template<class GridImp >
using Dune::SubGridPart< GridImp >::Intersection = typename Traits ::Intersection

type of the intersection

◆ IntersectionIterator

template<class GridImp >
using Dune::SubGridPart< GridImp >::IntersectionIterator = typename Traits ::IntersectionIterator

type of the intersection iterator

◆ Traits

template<class GridImp >
using Dune::SubGridPart< GridImp >::Traits = SubGridPartTraits<GridImp>

Member Enumeration Documentation

◆ anonymous enum

template<class GridImp >
anonymous enum
Enumerator
conforming 

◆ anonymous enum

template<class GridImp >
anonymous enum
Enumerator
dimension 

Constructor & Destructor Documentation

◆ SubGridPart()

template<class GridImp >
Dune::SubGridPart< GridImp >::SubGridPart ( const Grid grid,
std::vector< typename Codim< 0 >::Entity::EntitySeed > &&  seeds,
const bool  overlap = true 
)
inline

Construct a view of the codim 0 entities that can be constructed from the seeds input.

The seeds input is moved from and will be in a valid but indeterminate state after the call.

References Dune::SubGridPart< GridImp >::end().

Member Function Documentation

◆ begin() [1/2]

template<class GridImp >
template<int cd>
Codim< cd >::Iterator Dune::SubGridPart< GridImp >::begin ( ) const
inline

obtain number of entities with a given geometry type

obtain begin iterator for this view

◆ begin() [2/2]

template<class GridImp >
template<int cd, PartitionIteratorType pit>
Codim< cd >::template Partition< pit >::Iterator Dune::SubGridPart< GridImp >::begin ( ) const
inline

obtain begin iterator for this view

◆ comm()

template<class GridImp >
const CollectiveCommunication & Dune::SubGridPart< GridImp >::comm ( ) const
inline

obtain collective communication object

References Dune::SubGridPart< GridImp >::grid().

◆ end() [1/2]

template<class GridImp >
template<int cd>
Codim< cd >::Iterator Dune::SubGridPart< GridImp >::end ( ) const
inline

obtain end iterator for this view

Referenced by Dune::SubGridPart< GridImp >::SubGridPart().

◆ end() [2/2]

template<class GridImp >
template<int cd, PartitionIteratorType pit>
Codim< cd >::template Partition< pit >::Iterator Dune::SubGridPart< GridImp >::end ( ) const
inline

obtain end iterator for this view

◆ ghostSize()

template<class GridImp >
int Dune::SubGridPart< GridImp >::ghostSize ( int  codim) const
inline

Return size of the ghost region for a given codim on the grid view.

◆ grid()

template<class GridImp >
const Grid & Dune::SubGridPart< GridImp >::grid ( ) const
inline

obtain a const reference to the underlying hierarchic grid

Referenced by Dune::SubGridPart< GridImp >::comm().

◆ ibegin()

template<class GridImp >
IntersectionIterator Dune::SubGridPart< GridImp >::ibegin ( const typename Codim< 0 >::Entity &  entity) const
inline

obtain begin intersection iterator with respect to this view

◆ iend()

template<class GridImp >
IntersectionIterator Dune::SubGridPart< GridImp >::iend ( const typename Codim< 0 >::Entity &  entity) const
inline

obtain end intersection iterator with respect to this view

◆ overlapSize()

template<class GridImp >
int Dune::SubGridPart< GridImp >::overlapSize ( int  codim) const
inline

Return size of the overlap region for a given codim on the grid view.

◆ size()

template<class GridImp >
int Dune::SubGridPart< GridImp >::size ( int  codim) const
inline

obtain the index set

obtain number of entities in a given codimension


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