16 #include <deal.II/base/quadrature_lib.h> 17 #include <deal.II/base/quadrature_selector.h> 19 DEAL_II_NAMESPACE_OPEN
25 const unsigned int order)
29 AssertThrow(order >= 1, ExcInvalidQGaussOrder(order));
38 else if (s ==
"milne")
40 else if (s ==
"simpson")
42 else if (s ==
"trapez")
44 else if (s ==
"weddle")
60 const unsigned int order)
61 :
Quadrature<dim>(create_quadrature(s, order).get_points(),
62 create_quadrature(s, order).get_weights())
71 return std::string(
"gauss|midpoint|milne|simpson|trapez|weddle");
81 DEAL_II_NAMESPACE_CLOSE
static Quadrature< dim > create_quadrature(const std::string &s, const unsigned int order)
static std::string get_quadrature_names()
#define AssertThrow(cond, exc)
QuadratureSelector(const std::string &s, const unsigned int order=0)