Reference documentation for deal.II version Git a73d35cdfe 2020-05-28 10:34:58 +0200
\(\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\}}\)
mapping_q1.cc
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2018 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 
23 
25 
26 #include <deal.II/fe/fe.h>
27 #include <deal.II/fe/fe_tools.h>
28 #include <deal.II/fe/fe_values.h>
29 #include <deal.II/fe/mapping_q1.h>
30 
31 #include <deal.II/grid/tria.h>
33 
35 
36 #include <algorithm>
37 #include <array>
38 #include <cmath>
39 #include <memory>
40 
41 
43 
44 
45 
46 template <int dim, int spacedim>
48  : MappingQGeneric<dim, spacedim>(1)
49 {}
50 
51 
52 
53 template <int dim, int spacedim>
54 std::unique_ptr<Mapping<dim, spacedim>>
56 {
57  return std::make_unique<MappingQ1<dim, spacedim>>(*this);
58 }
59 
60 //---------------------------------------------------------------------------
61 
62 
63 template <int dim, int spacedim>
66 
67 
68 
69 //--------------------------- Explicit instantiations -----------------------
70 #include "mapping_q1.inst"
71 
72 
virtual std::unique_ptr< Mapping< dim, spacedim > > clone() const override
Definition: mapping_q1.cc:55
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:362
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:361