Classes | |
class | ExcInvalidOrder |
class | ExcInvalidQGaussOrder |
class | ExcInvalidQuadrature |
Public Member Functions | |
QuadratureSelector (const std::string &s, const unsigned int order=0) | |
Static Public Member Functions | |
static std::string | get_quadrature_names () |
Static Private Member Functions | |
static Quadrature< dim > | create_quadrature (const std::string &s, const unsigned int order) |
This class is useful if you want to use flexible quadrature rules, that are read from a parameter file (see ParameterHandler for this).
QuadratureSelector< dim >::QuadratureSelector | ( | const std::string & | s, | |
const unsigned int | order = 0 | |||
) |
Constructor. Takes the name of the quadrature rule (one of "gauss", "milne", "weddle", etc) and, if it iss "gauss", the order of the quadrature rule as argument.
static std::string QuadratureSelector< dim >::get_quadrature_names | ( | ) | [static] |
This function returns all possible names for quadratures as a list separated by |
, so that you can use it for the definition of parameter files (see ParameterHandler for details).
static Quadrature<dim> QuadratureSelector< dim >::create_quadrature | ( | const std::string & | s, | |
const unsigned int | order | |||
) | [static, private] |
This static function creates a quadrature object according to the name given as a string, and the appropriate order (if the name is "gauss"). It is called from the constructor.