Reference documentation for deal.II version 9.6.0
|
#include <deal.II/base/quadrature_selector.h>
Public Member Functions | |
QuadratureSelector (const std::string &s, const unsigned int order=0) | |
Static Public Member Functions | |
static std::string | get_quadrature_names () |
static ::ExceptionBase & | ExcInvalidQGaussOrder (int arg1) |
static ::ExceptionBase & | ExcInvalidOrder (std::string arg1, unsigned int arg2) |
static ::ExceptionBase & | ExcInvalidQuadrature (std::string arg1) |
Static Private Member Functions | |
static Quadrature< dim > | create_quadrature (const std::string &s, const unsigned int order) |
This class implements the quadrature rule passed to its constructor as a string. Supported quadratures are QGauss (of all orders), QMidpoint, QMilne, QSimpson, QTrapezoid and QWeddle.
This class is useful if you want to use flexible quadrature rules, that are read from a parameter file (see ParameterHandler for this).
Definition at line 40 of file quadrature_selector.h.
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 is "gauss", the number of quadrature points in each coordinate direction.
Definition at line 67 of file quadrature_selector.cc.
|
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).
Definition at line 77 of file quadrature_selector.cc.
|
staticprivate |
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.
Definition at line 23 of file quadrature_selector.cc.