26template <
int dim,
int spacedim>
30 Polynomials::Legendre::generate_complete_basis(degree)),
57template <
int dim,
int spacedim>
65 std::ostringstream namebuf;
67 << this->degree <<
")";
74template <
int dim,
int spacedim>
75std::unique_ptr<FiniteElement<dim, spacedim>>
78 return std::make_unique<FE_DGP<dim, spacedim>>(*this);
88template <
int dim,
int spacedim>
89std::vector<unsigned int>
92 std::vector<unsigned int> dpo(dim + 1, 0U);
94 for (
unsigned int i = 1; i < dim; ++i)
96 dpo[dim] *= deg + 1 + i;
104template <
int dim,
int spacedim>
109 const unsigned int)
const
115 (void)interpolation_matrix;
119 (
dynamic_cast<const FEDGP *
>(&x_source_fe) !=
nullptr),
120 typename FE::ExcInterpolationNotImplemented());
122 Assert(interpolation_matrix.
m() == 0,
124 Assert(interpolation_matrix.
n() == 0,
130template <
int dim,
int spacedim>
136 const unsigned int)
const
142 (void)interpolation_matrix;
146 (
dynamic_cast<const FEDGP *
>(&x_source_fe) !=
nullptr),
147 typename FE::ExcInterpolationNotImplemented());
149 Assert(interpolation_matrix.
m() == 0,
151 Assert(interpolation_matrix.
n() == 0,
157template <
int dim,
int spacedim>
166template <
int dim,
int spacedim>
167std::vector<std::pair<unsigned int, unsigned int>>
173 return std::vector<std::pair<unsigned int, unsigned int>>();
177 return std::vector<std::pair<unsigned int, unsigned int>>();
183template <
int dim,
int spacedim>
184std::vector<std::pair<unsigned int, unsigned int>>
190 return std::vector<std::pair<unsigned int, unsigned int>>();
194 return std::vector<std::pair<unsigned int, unsigned int>>();
200template <
int dim,
int spacedim>
201std::vector<std::pair<unsigned int, unsigned int>>
204 const unsigned int)
const
208 return std::vector<std::pair<unsigned int, unsigned int>>();
212 return std::vector<std::pair<unsigned int, unsigned int>>();
218template <
int dim,
int spacedim>
222 const unsigned int codim)
const
239 if (this->degree < fe_dgp_other->degree)
241 else if (this->degree == fe_dgp_other->degree)
249 if (fe_nothing->is_dominating())
264template <
int dim,
int spacedim>
267 const unsigned int)
const
275template <
int dim,
int spacedim>
276std::pair<Table<2, bool>, std::vector<unsigned int>>
280 constant_modes(0, 0) =
true;
281 return std::pair<Table<2, bool>, std::vector<unsigned int>>(
282 constant_modes, std::vector<unsigned int>(1, 0));
287template <
int dim,
int spacedim>
298#include "fe_dgp.inst"
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_line_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
virtual bool has_support_on_face(const unsigned int shape_index, const unsigned int face_index) const override
virtual std::pair< Table< 2, bool >, std::vector< unsigned int > > get_constant_modes() const override
virtual void get_subface_interpolation_matrix(const FiniteElement< dim, spacedim > &source, const unsigned int subface, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
virtual std::string get_name() const override
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_vertex_dof_identities(const FiniteElement< dim, spacedim > &fe_other) const override
virtual void get_face_interpolation_matrix(const FiniteElement< dim, spacedim > &source, FullMatrix< double > &matrix, const unsigned int face_no=0) const override
FE_DGP(const unsigned int p)
virtual std::size_t memory_consumption() const override
virtual std::vector< std::pair< unsigned int, unsigned int > > hp_quad_dof_identities(const FiniteElement< dim, spacedim > &fe_other, const unsigned int face_no=0) const override
virtual std::unique_ptr< FiniteElement< dim, spacedim > > clone() const override
virtual FiniteElementDomination::Domination compare_for_domination(const FiniteElement< dim, spacedim > &fe_other, const unsigned int codim=0) const override final
virtual bool hp_constraints_are_implemented() const override
virtual std::string get_name() const =0
std::vector< std::vector< FullMatrix< double > > > restriction
void reinit_restriction_and_prolongation_matrices(const bool isotropic_restriction_only=false, const bool isotropic_prolongation_only=false)
std::vector< std::vector< FullMatrix< double > > > prolongation
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
#define AssertThrow(cond, exc)
#define DEAL_II_NOT_IMPLEMENTED()
@ either_element_can_dominate
@ other_element_dominates
@ neither_element_dominates
std::string dim_string(const int dim, const int spacedim)