* FiniteElement classes.
*/
static unsigned int
- n_polynomials(unsigned int degree);
+ n_polynomials(const unsigned int degree);
/**
* @copydoc TensorPolynomialsBase<dim>::clone()
* by the FiniteElement classes.
*/
static unsigned int
- n_polynomials(unsigned int degree);
+ n_polynomials(const unsigned int degree);
/**
* @copydoc TensorPolynomialsBase<dim>::clone()
* the FiniteElement classes.
*/
static unsigned int
- n_polynomials(unsigned int degree);
+ n_polynomials(const unsigned int degree);
/**
* @copydoc TensorPolynomialsBase<dim>::clone()
* required by the FiniteElement classes.
*/
static unsigned int
- n_polynomials(unsigned int degree);
+ n_polynomials(const unsigned int degree);
/**
* @copydoc TensorPolynomialsBase<dim>::clone()
dim,
deg + 1,
FiniteElementData<dim>::L2),
- std::vector<bool>(PolynomialType::compute_n_pols(deg), true),
- std::vector<ComponentMask>(PolynomialType::compute_n_pols(deg),
+ std::vector<bool>(PolynomialType::n_polynomials(deg), true),
+ std::vector<ComponentMask>(PolynomialType::n_polynomials(deg),
ComponentMask(dim, true)))
{
this->mapping_kind = {map};
const unsigned int deg)
{
std::vector<unsigned int> dpo(dim + 1);
- dpo[dim] = PolynomialType::compute_n_pols(deg);
+ dpo[dim] = PolynomialType::n_polynomials(deg);
return dpo;
}
template <int dim>
unsigned int
-PolynomialsBDM<dim>::n_polynomials(unsigned int k)
+PolynomialsBDM<dim>::n_polynomials(const unsigned int k)
{
if (dim == 1)
return k + 1;
template <int dim>
unsigned int
-PolynomialsNedelec<dim>::n_polynomials(unsigned int k)
+PolynomialsNedelec<dim>::n_polynomials(const unsigned int k)
{
switch (dim)
{
template <int dim>
unsigned int
-PolynomialsRaviartThomas<dim>::n_polynomials(unsigned int k)
+PolynomialsRaviartThomas<dim>::n_polynomials(const unsigned int k)
{
if (dim == 1)
return k + 1;
dim,
deg + 2,
FiniteElementData<dim>::Hdiv),
- std::vector<bool>(PolynomialsABF<dim>::compute_n_pols(deg), true),
- std::vector<ComponentMask>(PolynomialsABF<dim>::compute_n_pols(deg),
+ std::vector<bool>(PolynomialsABF<dim>::n_polynomials(deg), true),
+ std::vector<ComponentMask>(PolynomialsABF<dim>::n_polynomials(deg),
std::vector<bool>(dim, true)))
, rt_order(deg)
{
deg + 1,
FiniteElementData<dim>::Hdiv),
get_ria_vector(deg),
- std::vector<ComponentMask>(PolynomialsBDM<dim>::compute_n_pols(deg),
+ std::vector<ComponentMask>(PolynomialsBDM<dim>::n_polynomials(deg),
std::vector<bool>(dim, true)))
{
Assert(dim >= 2, ExcImpossibleInDim(dim));
// the element is face-based and we have as many degrees of freedom
// on the faces as there are polynomials of degree up to
// deg. Observe the odd convention of
- // PolynomialSpace::compute_n_pols()!
+ // PolynomialSpace::n_polynomials()!
std::vector<unsigned int> dpo(dim + 1, 0u);
dpo[dim] =
- (deg > 1 ? dim * PolynomialSpace<dim>::compute_n_pols(deg - 1) : 0u);
- dpo[dim - 1] = PolynomialSpace<dim - 1>::compute_n_pols(deg + 1);
+ (deg > 1 ? dim * PolynomialSpace<dim>::n_polynomials(deg - 1) : 0u);
+ dpo[dim - 1] = PolynomialSpace<dim - 1>::n_polynomials(deg + 1);
return dpo;
}
return std::vector<bool>();
}
- const unsigned int dofs_per_cell = PolynomialsBDM<dim>::compute_n_pols(deg);
+ const unsigned int dofs_per_cell = PolynomialsBDM<dim>::n_polynomials(deg);
const unsigned int dofs_per_face =
- PolynomialSpace<dim - 1>::compute_n_pols(deg + 1);
+ PolynomialSpace<dim - 1>::n_polynomials(deg + 1);
Assert(GeometryInfo<dim>::faces_per_cell * dofs_per_face <= dofs_per_cell,
ExcInternalError());
dim,
2,
FiniteElementData<dim>::Hdiv),
- std::vector<bool>(PolynomialsBernardiRaugel<dim>::compute_n_pols(p),
- true),
- std::vector<ComponentMask>(PolynomialsBernardiRaugel<dim>::compute_n_pols(
+ std::vector<bool>(PolynomialsBernardiRaugel<dim>::n_polynomials(p), true),
+ std::vector<ComponentMask>(PolynomialsBernardiRaugel<dim>::n_polynomials(
p),
std::vector<bool>(dim, true)))
{
dim,
order + 1,
FiniteElementData<dim>::Hcurl),
- std::vector<bool>(PolynomialsNedelec<dim>::compute_n_pols(order), true),
- std::vector<ComponentMask>(PolynomialsNedelec<dim>::compute_n_pols(order),
+ std::vector<bool>(PolynomialsNedelec<dim>::n_polynomials(order), true),
+ std::vector<ComponentMask>(PolynomialsNedelec<dim>::n_polynomials(order),
std::vector<bool>(dim, true)))
{
#ifdef DEBUG_NEDELEC
if (dg)
{
- dpo[dim] = PolynomialsNedelec<dim>::compute_n_pols(degree);
+ dpo[dim] = PolynomialsNedelec<dim>::n_polynomials(degree);
}
else
{
dim,
deg + 1,
FiniteElementData<dim>::Hdiv),
- std::vector<bool>(PolynomialsRaviartThomas<dim>::compute_n_pols(deg),
+ std::vector<bool>(PolynomialsRaviartThomas<dim>::n_polynomials(deg),
true),
- std::vector<ComponentMask>(PolynomialsRaviartThomas<dim>::compute_n_pols(
+ std::vector<ComponentMask>(PolynomialsRaviartThomas<dim>::n_polynomials(
deg),
std::vector<bool>(dim, true)))
{
FiniteElementData<dim>::Hdiv),
get_ria_vector(deg),
std::vector<ComponentMask>(
- PolynomialsRaviartThomas<dim>::compute_n_pols(deg),
+ PolynomialsRaviartThomas<dim>::n_polynomials(deg),
std::vector<bool>(dim, true)))
{
Assert(dim >= 2, ExcImpossibleInDim(dim));
FE_RaviartThomasNodal<dim>::get_ria_vector(const unsigned int deg)
{
const unsigned int dofs_per_cell =
- PolynomialsRaviartThomas<dim>::compute_n_pols(deg);
+ PolynomialsRaviartThomas<dim>::n_polynomials(deg);
unsigned int dofs_per_face = deg + 1;
for (unsigned int d = 2; d < dim; ++d)
dofs_per_face *= deg + 1;
template <int dim>
FE_RT_Bubbles<dim>::FE_RT_Bubbles(const unsigned int deg)
- : FE_PolyTensor<dim>(PolynomialsRT_Bubbles<dim>(deg),
- FiniteElementData<dim>(get_dpo_vector(deg),
- dim,
- deg + 1,
- FiniteElementData<dim>::Hdiv),
- get_ria_vector(deg),
- std::vector<ComponentMask>(
- PolynomialsRT_Bubbles<dim>::compute_n_pols(deg),
- std::vector<bool>(dim, true)))
+ : FE_PolyTensor<dim>(
+ PolynomialsRT_Bubbles<dim>(deg),
+ FiniteElementData<dim>(get_dpo_vector(deg),
+ dim,
+ deg + 1,
+ FiniteElementData<dim>::Hdiv),
+ get_ria_vector(deg),
+ std::vector<ComponentMask>(PolynomialsRT_Bubbles<dim>::n_polynomials(deg),
+ std::vector<bool>(dim, true)))
{
Assert(dim >= 2, ExcImpossibleInDim(dim));
Assert(
FE_RT_Bubbles<dim>::get_ria_vector(const unsigned int deg)
{
const unsigned int dofs_per_cell =
- PolynomialsRT_Bubbles<dim>::compute_n_pols(deg);
+ PolynomialsRT_Bubbles<dim>::n_polynomials(deg);
unsigned int dofs_per_face = deg + 1;
for (unsigned int d = 2; d < dim; ++d)
dofs_per_face *= deg + 1;