The constructor currently adds a single weight but no points. This
appears to be a mistake, since points and weights get different sizes.
Fix this and add an comment in the documentation.
* This constructor does not require that constant functions are integrated
* exactly. Therefore, it is appropriate if the one-dimensional formula
* is defined with respect to a weighting function.
+ *
+ * If dim == 0, the resulting quadrature formula will be a single Point<0>
+ * having unit weight.
*/
explicit Quadrature(const Quadrature<dim != 1 ? 1 : 0> &quadrature_1d);
template <>
Quadrature<0>::Quadrature(const Quadrature<1> &)
: Subscriptor()
- ,
- // quadrature_points(1),
- weights(1, 1.)
+ , quadrature_points(1)
+ , weights(1, 1.)
, is_tensor_product_flag(false)
{}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams