Flow123d
release_3.0.0-955-g4db4b48
|
Class representing midpoint rule, with uniformly distributed points of the same weight. More...
#include <qmidpoint.hh>
Public Member Functions | |
QMidpoint (const unsigned int n_quadrature_points) | |
Empty constructor. More... | |
Public Member Functions inherited from Quadrature< 1 > | |
Quadrature (const unsigned int n_quadrature_points=0) | |
Constructor. More... | |
Quadrature (const Quadrature< dim > &q) | |
Copy constructor. More... | |
Quadrature (const Quadrature< dim-1 > &sub_quadrature, unsigned int sid, unsigned int pid) | |
Constructor from quadrature of lower dimension (e.g. for side integration). More... | |
virtual | ~Quadrature () |
Virtual destructor. More... | |
void | resize (const unsigned int n_q_points) |
Modify the number of quadrature points. More... | |
const unsigned int | size () const |
Returns number of quadrature points. More... | |
const arma::vec::fixed< dim > & | point (const unsigned int i) const |
Returns the i th quadrature point. More... | |
const std::vector< arma::vec::fixed< dim > > & | get_points () const |
Return a reference to the whole array of quadrature points. More... | |
void | set_point (const unsigned int i, const arma::vec::fixed< dim > &p) |
Sets individual quadrature point coordinates. More... | |
double | weight (const unsigned int i) const |
Returns the i th weight. More... | |
const std::vector< double > & | get_weights () const |
Return a reference to the whole array of weights. More... | |
void | set_weight (const unsigned int i, const double w) |
Sets individual quadrature weight. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Quadrature< 1 > | |
std::vector< arma::vec::fixed< dim > > | quadrature_points |
List of quadrature points. More... | |
std::vector< double > | weights |
List of weights to the quadrature points. More... | |
Class representing midpoint rule, with uniformly distributed points of the same weight.
Definition at line 29 of file qmidpoint.hh.
|
inline |
Empty constructor.
Definition at line 32 of file qmidpoint.hh.