deal2lkit: A ToolKit library for Deal.II
parsed_quadrature.h
Go to the documentation of this file.
1 //-----------------------------------------------------------
2 //
3 // Copyright (C) 2015 by the deal2lkit authors
4 //
5 // This file is part of the deal2lkit library.
6 //
7 // The deal2lkit library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal2lkit distribution.
13 //
14 //-----------------------------------------------------------
15 
16 #ifndef _d2k_parsed_quadrature
17 #define _d2k_parsed_quadrature
18 
21 
22 using namespace dealii;
23 
24 
25 D2K_NAMESPACE_OPEN
26 
32 template<int dim>
33 class ParsedQuadrature : public Quadrature<dim>, public ParameterAcceptor
34 {
35 public:
57  ParsedQuadrature( const std::string &name="",
58  const std::string &quadrature_type="gauss",
59  const unsigned int order = 3,
60  const unsigned int repetitions = 1);
61 
65  virtual void declare_parameters(ParameterHandler &prm);
66 
70  virtual void parse_parameters_call_back();
71 
72 private:
73 
78  std::string quadrature_type;
79 
87  unsigned int repetitions;
88 
93  unsigned int order;
94 };
95 
96 D2K_NAMESPACE_CLOSE
97 
98 
99 #endif
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.
std::string quadrature_type
Name of the quadrature of the quadrature rule: "gauss", "midpoint", "milne", "simpson", "trapez", or "weddle".
A deal2lkit wrapper for an iterated version of dealii::QuadratureSelector.