deal.II version GIT relicensing-6842-g793a97d2aa 2026-10-02 14:00:01+00:00
\(\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
Public Member Functions | Public Attributes | List of all members
internal::TriangulationImplementation::Strides< dim > Struct Template Reference

Strides of various arrays in a Triangulation. More...

#include <deal.II/grid/tria.h>

Detailed Description

template<int dim>
struct internal::TriangulationImplementation::Strides< dim >

Strides of various arrays in a Triangulation.

The implementation of a Triangulation contains many arrays of subcell data, such as face orientations, neighbors, and the vertex index cache. For simplicity, we index those arrays by the largest stride required by all present ReferenceCell objects: e.g., if the only ReferenceCell is ReferenceCells::Tetrahedron then we only need to store 4 face orientations per cell (and thus the stride is 4), whereas if the Triangulation contains a Hexahedron then we store 6 per cell (and, for all cells, the stride is 6).

Note
Since refining a ReferenceCell produces the same ReferenceCell (except for ReferenceCells::Pyramid, which produces ReferenceCells::Tetrahedron and ReferenceCells::Pyramid), these strides only need to be set on level 0 and do not need to be updated during refinement (as a ReferenceCells::Tetrahedron has fewer vertices, lines, and faces then a ReferenceCells::Pyramid).

Definition at line 352 of file tria.h.

Public Member Functions

 Strides ()
 
 Strides (const std::vector< ReferenceCell< dim > > &reference_cells)
 

Public Attributes

unsigned int max_children_per_cell
 
unsigned int max_faces_per_cell
 
unsigned int max_lines_per_cell
 
unsigned int max_vertices_per_cell
 
unsigned int max_children_per_face
 
unsigned int max_lines_per_face
 

Constructor & Destructor Documentation

◆ Strides() [1/2]

template<int dim>
internal::TriangulationImplementation::Strides< dim >::Strides ( )

Default constructor. Sets all fields to invalid values.

Definition at line 139 of file tria.cc.

◆ Strides() [2/2]

template<int dim>
internal::TriangulationImplementation::Strides< dim >::Strides ( const std::vector< ReferenceCell< dim > > &  reference_cells)

Constructor. Sets all fields to the maximum values over all ReferenceCell objects.

Definition at line 151 of file tria.cc.

Member Data Documentation

◆ max_children_per_cell

template<int dim>
unsigned int internal::TriangulationImplementation::Strides< dim >::max_children_per_cell

Maximum number of children per cell.

Definition at line 368 of file tria.h.

◆ max_faces_per_cell

template<int dim>
unsigned int internal::TriangulationImplementation::Strides< dim >::max_faces_per_cell

Maximum number of faces per cell.

Definition at line 373 of file tria.h.

◆ max_lines_per_cell

template<int dim>
unsigned int internal::TriangulationImplementation::Strides< dim >::max_lines_per_cell

Maximum number of lines per cell.

Definition at line 378 of file tria.h.

◆ max_vertices_per_cell

template<int dim>
unsigned int internal::TriangulationImplementation::Strides< dim >::max_vertices_per_cell

Maximum number of vertices per cell.

Definition at line 383 of file tria.h.

◆ max_children_per_face

template<int dim>
unsigned int internal::TriangulationImplementation::Strides< dim >::max_children_per_face

Maximum number of vertices per cell.

Definition at line 388 of file tria.h.

◆ max_lines_per_face

template<int dim>
unsigned int internal::TriangulationImplementation::Strides< dim >::max_lines_per_face

Maximum number of vertices per cell.

Definition at line 393 of file tria.h.


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