Flow123d
JS_before_hm-1830-gb19ac973c
|
Go to the documentation of this file.
19 #ifndef QUADRATURE_HH_
20 #define QUADRATURE_HH_
58 Quadrature(
unsigned int dimension,
unsigned int n_quadrature_points = 0);
72 inline unsigned int dim()
const
79 inline void resize(
unsigned int n_q_points)
86 inline unsigned int size()
const
90 template<
unsigned int po
int_dim>
107 inline double weight(
unsigned int i)
const
126 template<
unsigned int bulk_dim>
Armor::ArmaVec< double, point_dim > point(unsigned int i) const
Returns the ith quadrature point.
Class RefElement defines numbering of vertices, sides, calculation of normal vectors etc.
std::vector< double > weights
List of weights to the quadrature points.
ArmaVec< Type, nr > vec(uint mat_index) const
Quadrature & operator=(const Quadrature &q)
const std::vector< double > & get_weights() const
Return a reference to the whole array of weights.
unsigned int size() const
Returns number of quadrature points.
#define ASSERT_EQ_DBG(a, b)
Definition of comparative assert macro (EQual) only for debug mode.
virtual ~Quadrature()
Constructor from quadrature of lower dimension (e.g. for side integration).
void resize(unsigned int n_q_points)
Modify the number of quadrature points.
double & weight(unsigned int i)
Returns the ith weight (non-const version).
Armor::Array< double >::ArrayMatSet set(uint i)
double weight(unsigned int i) const
Returns the ith weight.
const Armor::Array< double > & get_points() const
Return a reference to the whole array of quadrature points.
ArrayMatSet set(uint index)
Quadrature(const Quadrature &q)
Copy constructor.
const unsigned int dim_
Dimension of quadrature points.
Armor::Array< double > quadrature_points
List of quadrature points.
Base class for quadrature rules on simplices in arbitrary dimensions.
typename arma::Col< Type >::template fixed< nr > ArmaVec
Quadrature make_from_side(unsigned int sid) const