KASKADE 7 development version
Public Types | Public Member Functions | List of all members
Kaskade::EntityNumbering< GridView > Class Template Reference

#include <gridmanager.hh>

Detailed Description

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

Definition at line 179 of file 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
 

Member Typedef Documentation

◆ Index

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

Definition at line 185 of file gridmanager.hh.

Member Enumeration Documentation

◆ SortOrder

template<class GridView >
enum Kaskade::EntityNumbering::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 191 of file gridmanager.hh.

Constructor & Destructor Documentation

◆ EntityNumbering()

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

Definition at line 215 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 242 of file gridmanager.hh.


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