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 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.
#define ASSERT_EQ_DBG(a, b)
Definition of comparative assert macro (EQual) only for debug mode.
Quadrature(const Quadrature &q)
Copy constructor.
const std::vector< double > & get_weights() const
Return a reference to the whole array of weights.
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.
std::vector< double > weights
List of weights to the quadrature points.
Quadrature make_from_side(unsigned int sid, unsigned int pid)
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...
unsigned int size() const
Returns number of quadrature points.
Quadrature & operator=(const Quadrature &q)
Armor::array quadrature_points
List of quadrature points.