/**
* Constructor.
*/
- FE_Poly (unsigned int degree,
- const POLY& poly_space,
+ FE_Poly (const POLY& poly_space,
const FiniteElementData<dim> &fe_data,
const std::vector<bool> &restriction_is_additive_flags,
const std::vector<std::vector<bool> > &nonzero_components);
std::vector<std::vector<Tensor<1,dim> > > shape_gradients;
};
- /**
- * Degree of the polynomials.
- */
- const unsigned int degree;
-
/**
* The polynomial space. Its type
* is given by the template
FE_DGP<dim>::FE_DGP (const unsigned int degree)
:
FE_Poly<PolynomialSpace<dim>, dim> (
- degree,
PolynomialSpace<dim>(Polynomials::Legendre::generate_complete_basis(degree)),
FiniteElementData<dim>(get_dpo_vector(degree), 1, degree),
std::vector<bool>(FiniteElementData<dim>(get_dpo_vector(degree), 1, degree).dofs_per_cell,true),
FE_DGPMonomial<dim>::FE_DGPMonomial (const unsigned int degree)
:
FE_Poly<PolynomialsP<dim>, dim> (
- degree,
PolynomialsP<dim>(degree),
FiniteElementData<dim>(get_dpo_vector(degree), 1, degree),
std::vector<bool>(FiniteElementData<dim>(get_dpo_vector(degree), 1, degree).dofs_per_cell,true),
FE_DGQ<dim>::FE_DGQ (const unsigned int degree)
:
FE_Poly<TensorProductPolynomials<dim>, dim> (
- degree,
TensorProductPolynomials<dim>(Polynomials::LagrangeEquidistant::generate_complete_basis(degree)),
FiniteElementData<dim>(get_dpo_vector(degree), 1, degree),
std::vector<bool>(FiniteElementData<dim>(get_dpo_vector(degree),1, degree).dofs_per_cell, true),
template <class POLY, int dim>
-FE_Poly<POLY,dim>::FE_Poly (unsigned int degree,
- const POLY& poly_space,
+FE_Poly<POLY,dim>::FE_Poly (const POLY& poly_space,
const FiniteElementData<dim> &fe_data,
const std::vector<bool> &restriction_is_additive_flags,
const std::vector<std::vector<bool> > &nonzero_components):
FiniteElement<dim> (fe_data,
restriction_is_additive_flags,
nonzero_components),
- degree(degree),
poly_space(poly_space)
{}
unsigned int
FE_Poly<POLY,dim>::get_degree () const
{
- return degree;
+ return this->degree;
}
FE_Q<dim>::FE_Q (const unsigned int degree)
:
FE_Poly<TensorProductPolynomials<dim>, dim> (
- degree,
TensorProductPolynomials<dim>(Polynomials::LagrangeEquidistant::generate_complete_basis(degree)),
FiniteElementData<dim>(get_dpo_vector(degree),1, degree),
std::vector<bool> (FiniteElementData<dim>(
FE_Q_Hierarchical<dim>::FE_Q_Hierarchical (const unsigned int degree)
:
FE_Poly<TensorProductPolynomials<dim>, dim> (
- degree,
Polynomials::Hierarchical::generate_complete_basis(degree),
FiniteElementData<dim>(get_dpo_vector(degree),1, degree),
std::vector<bool> (FiniteElementData<dim>(