KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::EntityNumbering< GridView > Class Template Reference

#include <gridmanager.hh>

Public Types

enum  SortOrder { SORTBYCODIM , SEQUENTIAL , CUTHILLMCKEE }
 Defines the available orderings. More...
using Index = typename IndexSet::IndexType

Public Member Functions

 EntityNumbering (GridView const &gv, SortOrder order)
Index operator() (int codim, Index i) const

Detailed Description

template<class GridView>
class Kaskade::EntityNumbering< GridView >

Definition at line 188 of file gridmanager.hh.

Member Typedef Documentation

◆ Index

template<class GridView>
using Kaskade::EntityNumbering< GridView >::Index = typename IndexSet::IndexType

Definition at line 194 of file gridmanager.hh.

Member Enumeration Documentation

◆ SortOrder

Defines the available orderings.

Todo
shall this be extendable by deriving from the class, or by policies, or ...?
Enumerator
SORTBYCODIM 

sorts cells first, then faces, edges, and vertices last

SEQUENTIAL 

sorts cells according to the cell iterator of the grid view, and places lower codim entities close to incident cells This provides very good locality of access for all algorithms that step through the cells of the grid view. Depending on the grid implementation, it does not mean that stiffness matrices have a small band width.

NOT YET IMPLEMENTED

CUTHILLMCKEE 

sorts all entities according to their adjacency by Cuthill-McKee This provides small bandwidth of stiffness matrices and hence good locality of access in matrix-vector products.

NOT YET IMPLEMENTED

Definition at line 200 of file gridmanager.hh.

Constructor & Destructor Documentation

◆ EntityNumbering()

template<class GridView>
Kaskade::EntityNumbering< GridView >::EntityNumbering ( GridView const & gv,
SortOrder order )
inline

Definition at line 224 of file gridmanager.hh.

Member Function Documentation

◆ operator()()

template<class GridView>
Index Kaskade::EntityNumbering< GridView >::operator() ( int codim,
Index i ) const
inline

Definition at line 251 of file gridmanager.hh.


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