65 static const double unit_cell_volume[] = { 1, 1, 0.5, 1./6 };
77 nquads =
sizeof(q1d) /
sizeof(pQUAD);
81 nquads =
sizeof(q2d) /
sizeof(pQUAD);
85 nquads =
sizeof(q3d) /
sizeof(pQUAD);
89 OLD_ASSERT(order < nquads,
"Quadrature of given order is not implemented.");
92 for (
int i=0; i<q[order]->npoints; i++)
94 for (
unsigned int j=0; j<
dim; j++)
95 p[j] = q[order]->points[i*(dim+1)+j];
102 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.
Armor::array quadrature_points
List of quadrature points.