Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
fe_dg_vector.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 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 
17 #include <deal.II/base/polynomials_abf.h>
18 #include <deal.II/base/polynomials_bdm.h>
19 #include <deal.II/base/polynomials_nedelec.h>
20 #include <deal.II/base/polynomials_raviart_thomas.h>
21 #include <deal.II/base/std_cxx14/memory.h>
22 
23 #include <deal.II/fe/fe_dg_vector.templates.h>
24 
25 
26 DEAL_II_NAMESPACE_OPEN
27 
28 template <int dim, int spacedim>
30  : FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>(p, mapping_nedelec)
31 {}
32 
33 
34 template <int dim, int spacedim>
35 std::string
37 {
38  // note that the FETools::get_fe_by_nam function depends on the
39  // particular format of the string
40  // this function returns, so they
41  // have to be kept in synch
42 
43  std::ostringstream namebuf;
44  namebuf << "FE_DGNedelec<" << Utilities::dim_string(dim, spacedim) << ">("
45  << this->degree - 1 << ")";
46 
47  return namebuf.str();
48 }
49 
50 
51 template <int dim, int spacedim>
53  : FE_DGVector<PolynomialsRaviartThomas<dim>, dim, spacedim>(
54  p,
56 {}
57 
58 
59 template <int dim, int spacedim>
60 std::string
62 {
63  // note that the
64  // FETools::get_fe_by_name
65  // function depends on the
66  // particular format of the string
67  // this function returns, so they
68  // have to be kept in synch
69 
70  std::ostringstream namebuf;
71  namebuf << "FE_DGRaviartThomas<" << Utilities::dim_string(dim, spacedim)
72  << ">(" << this->degree - 1 << ")";
73 
74  return namebuf.str();
75 }
76 
77 
78 template <int dim, int spacedim>
79 FE_DGBDM<dim, spacedim>::FE_DGBDM(const unsigned int p)
80  : FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>(p, mapping_bdm)
81 {}
82 
83 
84 template <int dim, int spacedim>
85 std::string
87 {
88  // note that the
89  // FETools::get_fe_by_name
90  // function depends on the
91  // particular format of the string
92  // this function returns, so they
93  // have to be kept in synch
94 
95  std::ostringstream namebuf;
96  namebuf << "FE_DGBDM<" << Utilities::dim_string(dim, spacedim) << ">("
97  << this->degree - 1 << ")";
98 
99  return namebuf.str();
100 }
101 
102 
103 #include "fe_dg_vector.inst"
104 
105 DEAL_II_NAMESPACE_CLOSE
FE_DGNedelec(const unsigned int p)
Definition: fe_dg_vector.cc:29
FE_DGRaviartThomas(const unsigned int p)
Definition: fe_dg_vector.cc:52
FE_DGBDM(const unsigned int p)
Definition: fe_dg_vector.cc:79
virtual std::string get_name() const override
Definition: fe_dg_vector.cc:36
virtual std::string get_name() const override
Definition: fe_dg_vector.cc:86
std::string dim_string(const int dim, const int spacedim)
Definition: utilities.cc:457
virtual std::string get_name() const override
Definition: fe_dg_vector.cc:61