Reference documentation for deal.II version 9.0.0
fe_dg_vector.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2017 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 #include <deal.II/base/std_cxx14/memory.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<"
45  << Utilities::dim_string(dim,spacedim)
46  << ">(" << this->degree-1 << ")";
47 
48  return namebuf.str();
49 }
50 
51 
52 template <int dim, int spacedim>
55 {}
56 
57 
58 template <int dim, int spacedim>
59 std::string
61 {
62  // note that the
63  // FETools::get_fe_by_name
64  // function depends on the
65  // particular format of the string
66  // this function returns, so they
67  // have to be kept in synch
68 
69  std::ostringstream namebuf;
70  namebuf << "FE_DGRaviartThomas<"
71  << 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<"
97  << Utilities::dim_string(dim,spacedim)
98  << ">(" << this->degree-1 << ")";
99 
100  return namebuf.str();
101 }
102 
103 
104 #include "fe_dg_vector.inst"
105 
106 DEAL_II_NAMESPACE_CLOSE
107 
virtual std::string get_name() const
Definition: fe_dg_vector.cc:60
FE_DGNedelec(const unsigned int p)
Definition: fe_dg_vector.cc:29
FE_DGRaviartThomas(const unsigned int p)
Definition: fe_dg_vector.cc:53
FE_DGBDM(const unsigned int p)
Definition: fe_dg_vector.cc:79
virtual std::string get_name() const
Definition: fe_dg_vector.cc:86
std::string dim_string(const int dim, const int spacedim)
Definition: utilities.cc:176
virtual std::string get_name() const
Definition: fe_dg_vector.cc:36