DUNE PDELab (unstable)

Dune::Functions::Experimental::SubDomainIndexSet< HGV > Class Template Reference

An IndexSet for a sub-domain. More...

#include <dune/functions/common/subdomain.hh>

Classes

struct  Codim
 Codim specific typedefs. More...
 

Public Member Functions

 SubDomainIndexSet (const HostGridView &hostGridView)
 Construct SubDomainIndexSet for underlying host grid view.
 
const HostGridView & hostGridView () const
 Access underlying host grid view.
 
void insertElement (const typename Codim< 0 >::Entity &element)
 Insert element and all its sub-entities into SubDomainIndexSet.
 

Detailed Description

template<class HGV>
class Dune::Functions::Experimental::SubDomainIndexSet< HGV >

An IndexSet for a sub-domain.

A SubDomainIndexSet provides indices for a subset of the entities of a grid view. Once created, new entities can be inserted using subDomainIndexSet.insertElement(element) which will insert the grid element of codim 0 and all its sub entities. This will increment the internally stored size information accordingly. Querying the index of an entity or sub-entity that has not been inserted before will lead to an exception.

Internally this uses a std::vector<std::size_t> which stores the sub-domain index for each entity in the underlying grid view using a magic value for entities not contained in the sub-domain.

Template Parameters
HGVThe underlying host grid view type.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Aug 31, 22:39, 2025)