}
template <int dim>
- Quadrature<dim> &
+ const Quadrature<dim> &
get_nodal_type_quadrature(const Type &reference_cell)
{
AssertDimension(dim, reference_cell.get_dimension());
if (reference_cell == get_hypercube(dim))
{
- static Quadrature<dim> quadrature = create_quadrature(reference_cell);
+ static const Quadrature<dim> quadrature =
+ create_quadrature(reference_cell);
return quadrature;
}
else if (reference_cell == Type::Tri || reference_cell == Type::Tet)
{
- static Quadrature<dim> quadrature = create_quadrature(reference_cell);
+ static const Quadrature<dim> quadrature =
+ create_quadrature(reference_cell);
return quadrature;
}
else if (reference_cell == Type::Pyramid)
{
- static Quadrature<dim> quadrature = create_quadrature(reference_cell);
+ static const Quadrature<dim> quadrature =
+ create_quadrature(reference_cell);
return quadrature;
}
else if (reference_cell == Type::Wedge)
{
- static Quadrature<dim> quadrature = create_quadrature(reference_cell);
+ static const Quadrature<dim> quadrature =
+ create_quadrature(reference_cell);
return quadrature;
}
else
{
template Quadrature<deal_II_dimension> get_gauss_type_quadrature(
const Type &reference_cell, const unsigned n_points_1D);
- template Quadrature<deal_II_dimension> &get_nodal_type_quadrature(
+ template const Quadrature<deal_II_dimension> &get_nodal_type_quadrature(
const Type &reference_cell);
}