17 #include <deal.II/fe/fe_dgp.h> 18 #include <deal.II/fe/fe_tools.h> 21 #include <deal.II/base/std_cxx14/memory.h> 24 DEAL_II_NAMESPACE_OPEN
26 template <
int dim,
int spacedim>
34 get_dpo_vector(degree), 1, degree).dofs_per_cell,
std::vector<bool>(1,true)))
49 template <
int dim,
int spacedim>
57 std::ostringstream namebuf;
60 <<
">(" << this->degree <<
")";
67 template <
int dim,
int spacedim>
68 std::unique_ptr<FiniteElement<dim,spacedim> >
71 return std_cxx14::make_unique<FE_DGP<dim,spacedim>>(*this);
81 template <
int dim,
int spacedim>
82 std::vector<unsigned int>
85 std::vector<unsigned int> dpo(dim+1, 0U);
87 for (
unsigned int i=1; i<dim; ++i)
97 template <
int dim,
int spacedim>
107 (void)interpolation_matrix;
112 (dynamic_cast<const FEDGP *>(&x_source_fe) !=
nullptr),
114 ExcInterpolationNotImplemented());
116 Assert (interpolation_matrix.
m() == 0,
119 Assert (interpolation_matrix.
n() == 0,
126 template <
int dim,
int spacedim>
137 (void)interpolation_matrix;
142 (dynamic_cast<const FEDGP *>(&x_source_fe) !=
nullptr),
144 ExcInterpolationNotImplemented());
146 Assert (interpolation_matrix.
m() == 0,
149 Assert (interpolation_matrix.
n() == 0,
156 template <
int dim,
int spacedim>
165 template <
int dim,
int spacedim>
166 std::vector<std::pair<unsigned int, unsigned int> >
173 std::vector<std::pair<unsigned int, unsigned int> > ();
177 return std::vector<std::pair<unsigned int, unsigned int> > ();
183 template <
int dim,
int spacedim>
184 std::vector<std::pair<unsigned int, unsigned int> >
191 std::vector<std::pair<unsigned int, unsigned int> > ();
195 return std::vector<std::pair<unsigned int, unsigned int> > ();
201 template <
int dim,
int spacedim>
202 std::vector<std::pair<unsigned int, unsigned int> >
209 std::vector<std::pair<unsigned int, unsigned int> > ();
213 return std::vector<std::pair<unsigned int, unsigned int> > ();
219 template <
int dim,
int spacedim>
234 template <
int dim,
int spacedim>
237 const unsigned int)
const 245 template <
int dim,
int spacedim>
246 std::pair<Table<2,bool>, std::vector<unsigned int> >
250 constant_modes(0,0) =
true;
251 return std::pair<Table<2,bool>, std::vector<unsigned int> >
252 (constant_modes, std::vector<unsigned int>(1, 0));
257 template <
int dim,
int spacedim>
268 #include "fe_dgp.inst" 271 DEAL_II_NAMESPACE_CLOSE
std::vector< std::vector< FullMatrix< double > > > restriction
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual std::string get_name() const
virtual std::size_t memory_consumption() const
FE_DGP(const unsigned int p)
#define AssertThrow(cond, exc)
virtual FiniteElementDomination::Domination compare_for_face_domination(const FiniteElement< dim, spacedim > &fe_other) const
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix) const
std::vector< std::vector< FullMatrix< double > > > prolongation
#define Assert(cond, exc)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual std::string get_name() const =0
std::string dim_string(const int dim, const int spacedim)
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const
void reinit_restriction_and_prolongation_matrices(const bool isotropic_restriction_only=false, const bool isotropic_prolongation_only=false)
static ::ExceptionBase & ExcNotImplemented()
virtual bool hp_constraints_are_implemented() const
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const