Reference documentation for deal.II version 8.4.2
fe_dg_vector.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2014 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 at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #include <deal.II/fe/fe_dg_vector.templates.h>
18 #include <deal.II/base/polynomials_abf.h>
19 #include <deal.II/base/polynomials_bdm.h>
20 #include <deal.II/base/polynomials_nedelec.h>
21 #include <deal.II/base/polynomials_raviart_thomas.h>
22 
23 DEAL_II_NAMESPACE_OPEN
24 
25 template <int dim, int spacedim>
27  : FE_DGVector<PolynomialsNedelec<dim>, dim, spacedim>(p, mapping_nedelec)
28 {}
29 
30 
31 template <int dim, int spacedim>
32 std::string
34 {
35  // note that the
36  // FETools::get_fe_from_name
37  // function depends on the
38  // particular format of the string
39  // this function returns, so they
40  // have to be kept in synch
41 
42  std::ostringstream namebuf;
43  namebuf << "FE_DGNedelec<"
44  << Utilities::dim_string(dim,spacedim)
45  << ">(" << this->degree-1 << ")";
46 
47  return namebuf.str();
48 }
49 
50 
51 template <int dim, int spacedim>
54 {}
55 
56 
57 template <int dim, int spacedim>
58 std::string
60 {
61  // note that the
62  // FETools::get_fe_from_name
63  // function depends on the
64  // particular format of the string
65  // this function returns, so they
66  // have to be kept in synch
67 
68  std::ostringstream namebuf;
69  namebuf << "FE_DGRaviartThomas<"
70  << Utilities::dim_string(dim,spacedim)
71  << ">(" << this->degree-1 << ")";
72 
73  return namebuf.str();
74 }
75 
76 
77 template <int dim, int spacedim>
78 FE_DGBDM<dim, spacedim>::FE_DGBDM (const unsigned int p)
79  : FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>(p, mapping_bdm)
80 {}
81 
82 
83 template <int dim, int spacedim>
84 std::string
86 {
87  // note that the
88  // FETools::get_fe_from_name
89  // function depends on the
90  // particular format of the string
91  // this function returns, so they
92  // have to be kept in synch
93 
94  std::ostringstream namebuf;
95  namebuf << "FE_DGBDM<"
96  << 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
106 
virtual std::string get_name() const
Definition: fe_dg_vector.cc:59
FE_DGNedelec(const unsigned int p)
Definition: fe_dg_vector.cc:26
FE_DGRaviartThomas(const unsigned int p)
Definition: fe_dg_vector.cc:52
FE_DGBDM(const unsigned int p)
Definition: fe_dg_vector.cc:78
const unsigned int degree
Definition: fe_base.h:299
virtual std::string get_name() const
Definition: fe_dg_vector.cc:85
std::string dim_string(const int dim, const int spacedim)
Definition: utilities.cc:158
virtual std::string get_name() const
Definition: fe_dg_vector.cc:33