19 #ifndef QUADRATURE_HH_ 20 #define QUADRATURE_HH_ 58 Quadrature(
unsigned int dimension,
unsigned int n_quadrature_points = 0);
73 inline unsigned int dim()
const 80 inline void resize(
unsigned int n_q_points)
87 inline unsigned int size()
const 91 template<
unsigned int po
int_dim>
108 inline double weight(
unsigned int i)
const 127 template<
unsigned int bulk_dim>
Armor::Array< double > quadrature_points
List 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.
Armor::ArmaVec< double, point_dim > point(unsigned int i) const
Returns the ith quadrature point.
const Armor::Array< double > & get_points() const
Return a reference to the whole array of quadrature points.
Quadrature make_from_side(unsigned int sid, unsigned int pid) const
double weight(unsigned int i) const
Returns the ith weight.
void resize(unsigned int n_q_points)
Modify the number of quadrature points.
ArmaVec< Type, nr > vec(uint mat_index) const
virtual ~Quadrature()
Constructor from quadrature of lower dimension (e.g. for side integration).
Base class for quadrature rules on simplices in arbitrary dimensions.
std::vector< double > weights
List of weights to the quadrature points.
ArrayMatSet set(uint index)
typename arma::Col< Type >::template fixed< nr > ArmaVec
const unsigned int dim_
Dimension of quadrature points.
double & weight(unsigned int i)
Returns the ith weight (non-const version).
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)