dune-fem  2.8-git
quadratureimp_inline.hh
Go to the documentation of this file.
1 #ifndef DUNE_FEM_QUADRATUREIMP_INLINE_HH
2 #define DUNE_FEM_QUADRATUREIMP_INLINE_HH
3 
4 #include "quadratureimp.hh"
5 
6 namespace Dune
7 {
8 
9  namespace Fem
10  {
11 
12  template <class ct, int dim>
13  inline TestQuadrature<ct, dim>::TestQuadrature(const GeometryType& geo, int order) :
14  QuadratureImp<ct, dim>(IdProvider::instance().newId()),
15  geo_(geo),
16  order_(order)
17  {}
18 
19  template <class ct, int dim>
21  newQuadraturePoint(const CoordinateType& c, ct w)
22  {
23  this->addQuadraturePoint(c, w);
24  }
25 
26  } // namespace Fem
27 
28 } // namespace Dune
29 
30 #endif // #ifndef DUNE_FEM_QUADRATUREIMP_INLINE_HH
Definition: bindguard.hh:11
Singleton that manages a globally unique identifier.
Definition: idprovider.hh:16
FieldVector< FieldType, dim > CoordinateType
type of local coordinates
Definition: quadratureimp.hh:46
Generic implementation of a Dune quadrature.
Definition: quadratureimp.hh:196
TestQuadrature(const GeometryType &geo, int order)
Constructor.
Definition: quadratureimp_inline.hh:13
void newQuadraturePoint(const CoordinateType &c, ct weight)
Adds new quadrature point/weight pair.
Definition: quadratureimp_inline.hh:21