Public Member Functions | Static Public Member Functions | Static Private Member Functions

QuadratureSelector< dim > Class Template Reference
[Quadrature formulas]

Inheritance diagram for QuadratureSelector< dim >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 QuadratureSelector (const std::string &s, const unsigned int order=0)

Static Public Member Functions

static std::string get_quadrature_names ()
::ExceptionBaseExcInvalidQGaussOrder (int arg1) throw (errortext << "You tried to generate QGauss with an invalid order of " << arg1 << " (must be >= 2)" )
::ExceptionBaseExcInvalidOrder (std::string arg1, unsigned int arg2) throw (errortext << "You tried to generate a " << arg1 << " object; no order is needed (" << arg2 << " was given as parameter)" )
::ExceptionBaseExcInvalidQuadrature (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)

Detailed Description

template<int dim>
class QuadratureSelector< dim >

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).

Author:
Ralf Schulz, 2003

Definition at line 38 of file quadrature_selector.h.


Constructor & Destructor Documentation

template<int dim>
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.


Member Function Documentation

template<int dim>
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).

template<int dim>
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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:10 by doxygen 1.7.2