65 static const double unit_cell_volume[] = { 1, 1, 0.5, 1./6 };
66 const pQUAD *q =
nullptr;
67 unsigned int nquads = 0;
77 nquads =
sizeof(q1d) /
sizeof(pQUAD);
81 nquads =
sizeof(q2d) /
sizeof(pQUAD);
85 nquads =
sizeof(q3d) /
sizeof(pQUAD);
89 ASSERT_DBG(order < nquads).error(
"Quadrature of given order is not implemented.");
93 for (
int i=0; i<q[order]->npoints; i++)
95 for (
unsigned int j=0; j<
dim; j++)
96 p[j] = q[order]->points[i*(dim+1)+j];
103 this->
weights.push_back(q[order]->
weights[i]*unit_cell_volume[dim]);
void push_back(const std::vector< Type > &p)
Base class for quadrature rules on simplices in arbitrary dimensions.
Global macros to enhance readability and debugging, general constants.
std::vector< double > weights
List of weights to the quadrature points.
QGauss(unsigned int dim, const unsigned int order)
Create a formula of given order.
Definitions of particular quadrature rules on simplices.
#define ASSERT_PTR_DBG(ptr)
Definition of assert macro checking non-null pointer (PTR) only for debug mode.
Armor::array quadrature_points
List of quadrature points.