Reference documentation for deal.II version 9.2.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\}}\)
Static Public Attributes | List of all members
hp::StaticMappingQ1< dim, spacedim > Struct Template Reference

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

Static Public Attributes

static MappingCollection< dim, spacedim > mapping_collection
 

Detailed Description

template<int dim, int spacedim = dim>
struct hp::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 MappingQGeneric(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 collection of mappings with a single \(Q_1\) mapping object. This collection can then be used in all of those places where such a collection is needed.

Definition at line 142 of file mapping_collection.h.

Member Data Documentation

◆ mapping_collection

template<int dim, int spacedim>
MappingCollection< dim, spacedim > StaticMappingQ1< dim, spacedim >::mapping_collection
static
Initial value:
=
MappingCollection<dim, spacedim>(get_static_mapping_q1<dim, spacedim>())

The publicly available static \(Q_1\) mapping collection object.

Definition at line 148 of file mapping_collection.h.


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