namespace
{
- template <int dim, int spacedim>
std::vector<Point<1> >
get_QGaussLobatto_points (const unsigned int degree)
{
return QGaussLobatto<1>(degree+1).get_points();
else
{
- typedef FE_Q_Base<TensorProductPolynomials<dim>, dim, spacedim> FEQ;
+ typedef FE_Q_Base<TensorProductPolynomials<1>, 1, 1> FEQ;
AssertThrow(false, typename FEQ::ExcFEQCannotHaveDegree0());
}
return std::vector<Point<1> >();
FE_Q<dim,spacedim>::FE_Q (const unsigned int degree)
:
FE_Q_Base<TensorProductPolynomials<dim>, dim, spacedim>
- (TensorProductPolynomials<dim>(Polynomials::generate_complete_Lagrange_basis(get_QGaussLobatto_points<dim,spacedim>(degree))),
+ (TensorProductPolynomials<dim>(Polynomials::generate_complete_Lagrange_basis(get_QGaussLobatto_points(degree))),
FiniteElementData<dim>(this->get_dpo_vector(degree),
1, degree,
FiniteElementData<dim>::H1),
std::vector<bool> (1, false))
{
- this->initialize(get_QGaussLobatto_points<dim,spacedim>(degree));
+ this->initialize(get_QGaussLobatto_points(degree));
}
std::vector<unsigned int>
FE_Q_Base<PolynomialType,dim,spacedim>::get_dpo_vector(const unsigned int degree)
{
- AssertThrow(degree>0, ExcFEQCannotHaveDegree0());
+ typedef FE_Q_Base<PolynomialType,dim,spacedim> FEQ;
+ AssertThrow(degree>0, typename FEQ::ExcFEQCannotHaveDegree0());
std::vector<unsigned int> dpo(dim+1, 1U);
for (unsigned int i=1; i<dpo.size(); ++i)
dpo[i]=dpo[i-1]*(degree-1);