MoReFEM
|
Namespace that enclose quadrature points and rules. More...
Data Structures | |
struct | Hexahedron |
CRTP-defined class for the quadrature rules that concern Hexahedrons. More... | |
struct | Point |
CRTP-defined class for the quadrature rules that concern points. More... | |
struct | Quadrangle |
CRTP-defined class for the quadrature rules that concern Quadrangles. More... | |
struct | Segment |
CRTP-defined class for the quadrature rules that concern segments. More... | |
struct | Tetrahedron |
CRTP-defined class for the quadrature rules that concern tetrahedrons. More... | |
struct | Triangle |
CRTP-defined class for the quadrature rules that concern triangles. More... | |
Enumerations | |
enum class | GaussFormula { Gauss , Gauss_Lobatto } |
Variants of Gauss quadrature formula available. | |
Functions | |
template<GaussFormula QuadratureFormulaT> | |
void | ComputeGaussFormulas (std::size_t Npoints_gauss, std::vector< double > &points, std::vector< double > &weights) |
Computation of Gauss quadrature formula. | |
Namespace that enclose quadrature points and rules.
void MoReFEM::QuadratureNS::ComputeGaussFormulas | ( | std::size_t | Npoints_gauss, |
std::vector< double > & | points, | ||
std::vector< double > & | weights ) |
Computation of Gauss quadrature formula.
QuadratureFormulaT | Variant of Gauss quadrature formula to use. |
[in] | Npoints_gauss | Number of Gauss points to consider. |
[out] | points | Values for each of the quadrature point. |
[out] | weights | Weight for each of the quadrature point. |
For details about that function, take a look at P. N. swarztrauber, Computing the points and weights for Gauss-Legendre quadrature, SIAM J. Sci. Comput., 24(2002) pp. 945-954.
This code is adapted from Ondomatic, which itself was taken from elsewhere.