Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
hp::FECollection< dim, spacedim >::DefaultHierarchy Struct Reference

#include <deal.II/hp/fe_collection.h>

Static Public Member Functions

static unsigned int next_index (const typename hp::FECollection< dim, spacedim > &fe_collection, const unsigned int fe_index)
 
static unsigned int previous_index (const typename hp::FECollection< dim, spacedim > &fe_collection, const unsigned int fe_index)
 

Detailed Description

template<int dim, int spacedim = dim>
struct hp::FECollection< dim, spacedim >::DefaultHierarchy

Whenever p-adaptivity is considered in an hp-finite element program, a hierarchy of finite elements needs to be established to determine succeeding finite elements for refinement and preceding ones for coarsening.

In this struct, we supply a hierarchy that is imposed on all FECollection objects by default.

Definition at line 73 of file fe_collection.h.

Member Function Documentation

◆ next_index()

template<int dim, int spacedim = dim>
static unsigned int hp::FECollection< dim, spacedim >::DefaultHierarchy::next_index ( const typename hp::FECollection< dim, spacedim > &  fe_collection,
const unsigned int  fe_index 
)
inlinestatic

Return the index succeeding fe_index in the fe_collection.

Once the last element of the fe_collection is reached, there is no element on a higher level in the hierarchy and thus we return the last value.

Definition at line 82 of file fe_collection.h.

◆ previous_index()

template<int dim, int spacedim = dim>
static unsigned int hp::FECollection< dim, spacedim >::DefaultHierarchy::previous_index ( const typename hp::FECollection< dim, spacedim > &  fe_collection,
const unsigned int  fe_index 
)
inlinestatic

Return the index preceding fe_index in the fe_collection.

Once the first element of the fe_collection is reached, there is no element on a lower level in the hierarchy and thus we return the first value.

Definition at line 96 of file fe_collection.h.


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