QuadratureSelector< dim > Class Template Reference
[Quadrature formulas]

Inheritance diagram for QuadratureSelector< dim >:

Inheritance graph
[legend]

List of all members.

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)


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

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:

deal.II documentation generated on Sat Aug 15 16:52:16 2009 by doxygen 1.5.9