Flow123d
JS_before_hm-1755-g6249b9fc1
|
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);
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::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.
Quadrature make_from_side(unsigned int sid, unsigned int pid) const
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