Reference documentation for deal.II version GIT relicensing-1308-g50a4ffc717 2024-07-25 10:40: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\}}\)
No Matches
Static Public Attributes | List of all members
StaticMappingQ1< dim, spacedim > Struct Template Reference

#include <deal.II/fe/mapping_q1.h>

Static Public Attributes

static MappingQ< dim, spacedim > mapping

Detailed Description

template<int dim, int spacedim = dim>
struct StaticMappingQ1< dim, spacedim >

Many places in the library by default use (bi-,tri-)linear mappings unless users explicitly provide a different mapping to use. In these cases, the called function has to create a \(Q_1\) mapping object, i.e., an object of kind MappingQ(1). This is costly. It would also be costly to create such objects as static objects in the affected functions, because static objects are never destroyed throughout the lifetime of a program, even though they only have to be created once the first time code runs through a particular function.

In order to avoid creation of (static or dynamic) \(Q_1\) mapping objects in these contexts throughout the library, this class defines a static \(Q_1\) mapping object. This object can then be used in all of those places where such an object is needed.

The use of this object should be avoided since it is only applicable in cases where a mesh consists exclusively of quadrilaterals or hexahedra. Use ReferenceCells::get_hypercube<dim>().get_default_linear_mapping() instead.

Definition at line 91 of file mapping_q1.h.

Member Data Documentation

◆ mapping

template<int dim, int spacedim>
MappingQ< dim, spacedim > StaticMappingQ1< dim, spacedim >::mapping
Initial value:

The static \(Q_1\) mapping object discussed in the documentation of this class.

Definition at line 97 of file mapping_q1.h.

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