16 #ifndef dealii_quadrature_h 17 #define dealii_quadrature_h 20 #include <deal.II/base/config.h> 22 #include <deal.II/base/point.h> 23 #include <deal.II/base/subscriptor.h> 29 DEAL_II_NAMESPACE_OPEN
102 explicit Quadrature(
const unsigned int n_quadrature_points = 0);
209 point(const
unsigned int i) const;
221 weight(const
unsigned int i) const;
226 const
std::vector<
double> &
240 template <class Archive>
242 serialize(Archive &ar, const
unsigned int version);
271 typename std::conditional<dim == 1,
272 std::array<Quadrature<1>, dim>,
273 const std::array<Quadrature<1>, dim> &>::type
275 const std::array<Quadrature<1>, dim> &
382 "The quadrature formula you provided cannot be used " 383 "as the basis for iteration.");
399 return weights.size();
408 return quadrature_points[i];
424 inline const std::vector<Point<dim>> &
427 return quadrature_points;
433 inline const std::vector<double> &
445 return is_tensor_product_flag;
451 template <
class Archive>
459 ar &quadrature_points &weights;
480 DEAL_II_NAMESPACE_CLOSE
std::vector< double > weights
const std::vector< Point< dim > > & get_points() const
const std::vector< double > & get_weights() const
Quadrature(const unsigned int n_quadrature_points=0)
#define AssertIndexRange(index, range)
const Point< dim > & point(const unsigned int i) const
const std::array< Quadrature< 1 >, dim > & get_tensor_basis() const
QAnisotropic(const Quadrature< 1 > &qx)
#define DeclExceptionMsg(Exception, defaulttext)
std::size_t memory_consumption() const
static ::ExceptionBase & ExcInvalidQuadratureFormula()
bool is_tensor_product_flag
std::vector< Point< dim > > quadrature_points
unsigned int size() const
QIterated(const Quadrature< 1 > &base_quadrature, const unsigned int n_copies)
std::unique_ptr< std::array< Quadrature< 1 >, dim > > tensor_basis
void initialize(const std::vector< Point< dim >> &points, const std::vector< double > &weights)
void serialize(Archive &ar, const unsigned int version)
bool is_tensor_product() const
double weight(const unsigned int i) const