
Public Member Functions | |
| QuadratureSelector (const std::string &s, const unsigned int order=0) | |
Static Public Member Functions | |
| static std::string | get_quadrature_names () |
| ::ExceptionBase & | ExcInvalidQGaussOrder (int arg1) throw (errortext << "You tried to generate QGauss with an invalid order of " << arg1 << " (must be >= 2)" ) |
| ::ExceptionBase & | ExcInvalidOrder (std::string arg1, unsigned int arg2) throw (errortext << "You tried to generate a " << arg1 << " object; no order is needed (" << arg2 << " was given as parameter)" ) |
| ::ExceptionBase & | ExcInvalidQuadrature (std::string arg1) throw (errortext << arg1 << " is not a valid quadrature name for a quadrature rule" ) |
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, QTrapez 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 38 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 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.
documentation generated on Fri Feb 3 2012 06:04:10 by
doxygen
1.7.2