19 #ifndef QUADRATURE_HH_ 20 #define QUADRATURE_HH_ 58 Quadrature(
unsigned int dimension,
const unsigned int n_quadrature_points = 0);
71 inline unsigned int dim()
const 78 inline void resize(
const unsigned int n_q_points)
85 inline const unsigned int size()
const 89 template<
unsigned int po
int_dim>
101 inline double weight(
const unsigned int i)
const 105 inline double &
weight(
const unsigned int i)
120 template<
unsigned int bulk_dim>
Mat< Type, nr, nc > get(uint i) const
void resize(const unsigned int n_q_points)
Modify the number of quadrature points.
Quadrature(const Quadrature &q)
Copy constructor.
const std::vector< double > & get_weights() const
Return a reference to the whole array of weights.
Quadrature make_from_side(unsigned int sid, unsigned int pid)
virtual ~Quadrature()
Constructor from quadrature of lower dimension (e.g. for side integration).
double weight(const unsigned int i) const
Returns the ith weight.
Base class for quadrature rules on simplices in arbitrary dimensions.
Armor::vec< point_dim > point(const unsigned int i) const
Returns the ith quadrature point.
const Armor::array & get_points() const
Return a reference to the whole array of quadrature points.
const unsigned int size() const
Returns number of quadrature points.
std::vector< double > weights
List of weights to the quadrature points.
double & weight(const unsigned int i)
Returns the ith weight (non-const version).
const unsigned int dim_
Dimension of quadrature points.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc...
Quadrature & operator=(const Quadrature &q)
Armor::array quadrature_points
List of quadrature points.