Reference documentation for deal.II version 8.5.1
fe_dg_vector.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2010 - 2016 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 FETools::get_fe_by_nam function depends on the
36  // particular format of the string
37  // this function returns, so they
38  // have to be kept in synch
39 
40  std::ostringstream namebuf;
41  namebuf << "FE_DGNedelec<"
42  << Utilities::dim_string(dim,spacedim)
43  << ">(" << this->degree-1 << ")";
44 
45  return namebuf.str();
46 }
47 
48 
49 template <int dim, int spacedim>
52 {}
53 
54 
55 template <int dim, int spacedim>
56 std::string
58 {
59  // note that the
60  // FETools::get_fe_by_name
61  // function depends on the
62  // particular format of the string
63  // this function returns, so they
64  // have to be kept in synch
65 
66  std::ostringstream namebuf;
67  namebuf << "FE_DGRaviartThomas<"
68  << Utilities::dim_string(dim,spacedim)
69  << ">(" << this->degree-1 << ")";
70 
71  return namebuf.str();
72 }
73 
74 
75 template <int dim, int spacedim>
76 FE_DGBDM<dim, spacedim>::FE_DGBDM (const unsigned int p)
77  : FE_DGVector<PolynomialsBDM<dim>, dim, spacedim>(p, mapping_bdm)
78 {}
79 
80 
81 template <int dim, int spacedim>
82 std::string
84 {
85  // note that the
86  // FETools::get_fe_by_name
87  // function depends on the
88  // particular format of the string
89  // this function returns, so they
90  // have to be kept in synch
91 
92  std::ostringstream namebuf;
93  namebuf << "FE_DGBDM<"
94  << Utilities::dim_string(dim,spacedim)
95  << ">(" << this->degree-1 << ")";
96 
97  return namebuf.str();
98 }
99 
100 
101 #include "fe_dg_vector.inst"
102 
103 DEAL_II_NAMESPACE_CLOSE
104 
virtual std::string get_name() const
Definition: fe_dg_vector.cc:57
FE_DGNedelec(const unsigned int p)
Definition: fe_dg_vector.cc:26
FE_DGRaviartThomas(const unsigned int p)
Definition: fe_dg_vector.cc:50
FE_DGBDM(const unsigned int p)
Definition: fe_dg_vector.cc:76
virtual std::string get_name() const
Definition: fe_dg_vector.cc:83
std::string dim_string(const int dim, const int spacedim)
Definition: utilities.cc:161
virtual std::string get_name() const
Definition: fe_dg_vector.cc:33