33 #ifndef __H__UG__LIB_DISC__QUADRATURE_PROVIDER__
34 #define __H__UG__LIB_DISC__QUADRATURE_PROVIDER__
63 static const int dim = TDim;
112 template <
typename TRefElem>
location name
Definition: checkpoint_util.lua:128
provides quadrature rule for a Reference Dimension
Definition: quadrature.h:70
provides quadrature rules for a reference dimension
Definition: quadrature_provider.h:60
static const int dim
dimension of reference element
Definition: quadrature_provider.h:63
static std::vector< const QuadratureRule< TDim > * > m_vRule[NUM_QUADRATURE_TYPES][NUM_REFERENCE_OBJECTS]
Vector, holding all registered rules.
Definition: quadrature_provider.h:86
static const QuadratureRule< TDim > * create_gauss_legendre_rule(ReferenceObjectID roid, size_t order)
static const QuadratureRule< TDim > & get_quad_rule(ReferenceObjectID roid, size_t order, QuadType type)
provide rule, try to create it if not already present
Definition: quadrature_provider.cpp:220
~QuadratureRuleProvider()
destructor
Definition: quadrature_provider.cpp:209
QuadratureRuleProvider()
private constructor performing standard registering
Definition: quadrature_provider.cpp:201
static QuadratureRuleProvider< dim > & instance()
singleton provider
Definition: quadrature_provider.h:74
static const QuadratureRule< TDim > * create_gauss_rule(ReferenceObjectID roid, size_t order)
QuadratureRuleProvider(const QuadratureRuleProvider &)
static const QuadratureRule< TDim > & get(size_t order, QuadType type=BEST)
gets quadrature rule of requested order
Definition: quadrature_provider_impl.h:40
static const QuadratureRule< TDim > * create_newton_cotes_rule(ReferenceObjectID roid, size_t order)
Definition: quadrature_provider.cpp:191
QuadratureRuleProvider & operator=(const QuadratureRuleProvider &)
static void create_rule(ReferenceObjectID roid, size_t order, QuadType type)
creates rule at this provider
Definition: quadrature_provider.cpp:235
std::ostream & operator<<(std::ostream &outStream, const ug::MathMatrix< 2, 2 > &m)
Definition: math_matrix.cpp:38
QuadType GetQuadratureType(const std::string &name)
returns Identifier from string
Definition: quadrature_provider.cpp:299
ReferenceObjectID
these ids are used to identify the shape of a geometric object.
Definition: grid_base_objects.h:74
@ NUM_REFERENCE_OBJECTS
Definition: grid_base_objects.h:85
QuadType
types of quadratures
Definition: quadrature_provider.h:41
@ BEST
Definition: quadrature_provider.h:42
@ GAUSS
Definition: quadrature_provider.h:43
@ NUM_QUADRATURE_TYPES
Definition: quadrature_provider.h:46
@ NEWTON_COTES
Definition: quadrature_provider.h:45
@ GAUSS_LEGENDRE
Definition: quadrature_provider.h:44