24 const std::string &quadrature_type,
25 const unsigned int order,
26 const unsigned int repetitions)
29 quadrature_type(quadrature_type),
30 repetitions(repetitions),
49 "Quadrature order", std::to_string(
order),
51 "The number of quadrature points in each coordinate direction. (Avaible only for gauss otherwise it should be 0)");
54 "Number of repetitions", std::to_string(
repetitions),
56 "In one space dimension, the given base formula is copied and scaled onto a given number of subintervals of length 1/repetitions. In more than one space dimension, the resulting quadrature formula is constructed in the usual way by building the tensor product of the respective iterated quadrature formula in one space dimension.");
69 template class deal2lkit::ParsedQuadrature<1>;
70 template class deal2lkit::ParsedQuadrature<2>;
71 template class deal2lkit::ParsedQuadrature<3>;
unsigned int repetitions
In one space dimension, the given base formula is copied and scaled onto a given number of subinterva...
A parameter acceptor base class.
unsigned int order
Number of quadrature points in each coordinate direction.
static ParameterHandler prm
Static parameter.
static std::string get_quadrature_names()
std::string quadrature_type
Name of the quadrature of the quadrature rule: "gauss", "midpoint", "milne", "simpson", "trapez", or "weddle".
ParsedQuadrature(const std::string &name="", const std::string &quadrature_type="gauss", const unsigned int order=3, const unsigned int repetitions=1)
Constructor: takes an optional name for the section.
virtual void declare_parameters(ParameterHandler &prm)
Declare quadrature type and quadrature options.
virtual void parse_parameters_call_back()
Fill information about blocks after parsing the parameters.
void add_parameter(ParameterHandler &prm, T *parameter, const std::string &entry, const std::string &default_value, const Patterns::PatternBase &pattern=Patterns::Anything(), const std::string &documentation=std::string())
Add a parameter the given parameter list.