27template <
int dim,
int spacedim>
31 Polynomials::Legendre::generate_complete_basis(degree)),
58template <
int dim,
int spacedim>
66 std::ostringstream namebuf;
68 << this->degree <<
")";
75template <
int dim,
int spacedim>
76std::unique_ptr<FiniteElement<dim, spacedim>>
79 return std::make_unique<FE_DGP<dim, spacedim>>(*this);
89template <
int dim,
int spacedim>
90std::vector<unsigned int>
93 std::vector<unsigned int> dpo(dim + 1, 0U);
95 for (
unsigned int i = 1; i < dim; ++i)
97 dpo[dim] *= deg + 1 + i;
105template <
int dim,
int spacedim>
110 const unsigned int)
const
116 (void)interpolation_matrix;
120 (
dynamic_cast<const FEDGP *
>(&x_source_fe) !=
nullptr),
121 typename FE::ExcInterpolationNotImplemented());
123 Assert(interpolation_matrix.
m() == 0,
125 Assert(interpolation_matrix.
n() == 0,
131template <
int dim,
int spacedim>
137 const unsigned int)
const
143 (void)interpolation_matrix;
147 (
dynamic_cast<const FEDGP *
>(&x_source_fe) !=
nullptr),
148 typename FE::ExcInterpolationNotImplemented());
150 Assert(interpolation_matrix.
m() == 0,
152 Assert(interpolation_matrix.
n() == 0,
158template <
int dim,
int spacedim>
167template <
int dim,
int spacedim>
168std::vector<std::pair<unsigned int, unsigned int>>
174 return std::vector<std::pair<unsigned int, unsigned int>>();
178 return std::vector<std::pair<unsigned int, unsigned int>>();
184template <
int dim,
int spacedim>
185std::vector<std::pair<unsigned int, unsigned int>>
191 return std::vector<std::pair<unsigned int, unsigned int>>();
195 return std::vector<std::pair<unsigned int, unsigned int>>();
201template <
int dim,
int spacedim>
202std::vector<std::pair<unsigned int, unsigned int>>
205 const unsigned int)
const
209 return std::vector<std::pair<unsigned int, unsigned int>>();
213 return std::vector<std::pair<unsigned int, unsigned int>>();
219template <
int dim,
int spacedim>
223 const unsigned int codim)
const
240 if (this->degree < fe_dgp_other->degree)
242 else if (this->degree == fe_dgp_other->degree)
250 if (fe_nothing->is_dominating())
265template <
int dim,
int spacedim>
268 const unsigned int)
const
276template <
int dim,
int spacedim>
277std::pair<Table<2, bool>, std::vector<unsigned int>>
281 constant_modes(0, 0) =
true;
282 return std::pair<Table<2, bool>, std::vector<unsigned int>>(
283 constant_modes, std::vector<unsigned int>(1, 0));
288template <
int dim,
int spacedim>
299#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
static ::ExceptionBase & ExcNotImplemented()
#define Assert(cond, exc)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
#define AssertThrow(cond, exc)
@ either_element_can_dominate
@ other_element_dominates
@ neither_element_dominates
std::string dim_string(const int dim, const int spacedim)