dune-fem  2.6-git
defaultquadratures.hh
Go to the documentation of this file.
1 #ifndef DUNE_FEM_DEFAULTQUADRATURES_HH
2 #define DUNE_FEM_DEFAULTQUADRATURES_HH
3 
4 //#include <vector>
5 #include <cassert>
6 
7 #include <dune/common/fvector.hh>
8 #include <dune/common/exceptions.hh>
9 #include <dune/grid/common/grid.hh>
10 
12 
13 // don't use quadratures from dune-grid
14 //#define USE_DUNE_QUADRATURES
15 
16 // include quadrature points
17 #ifdef USE_DUNE_QUADRATURES
18 #warning "Don't use DUNE Quadratures!!!"
19 #include "dunequadratures.hh"
20 #else
21 #include "femquadratures.hh"
22 #endif
23 
24 namespace Dune
25 {
26 
27  namespace Fem
28  {
29 
30  // default defines for used quadratures
31  template< typename FieldType, int dim >
33  {
34 #ifdef USE_DUNE_QUADRATURES
36 #else
38 #endif
40  };
41 
42 
43 
44  // quadratures for points
45  template< typename FieldType >
46  struct DefaultQuadratureTraits< FieldType, 0 >
47  {
48 #ifdef USE_DUNE_QUADRATURES
50 #else
52 #endif
54  };
55 
56 
57 
58  // quadratures for lines
59  template< typename FieldType >
60  struct DefaultQuadratureTraits< FieldType, 1 >
61  {
62 #ifdef USE_DUNE_QUADRATURES
64 #else
66 #endif
68  };
69 
70 
71 
72  // quadratures for simplex and cubes
73  template< typename FieldType >
74  struct DefaultQuadratureTraits< FieldType, 2 >
75  {
76 #ifdef USE_DUNE_QUADRATURES
79 #else
82 #endif
84  };
85 
86 
87 
88  // quadratures for simplex, cubes, prisms, and pyramids
89  template< typename FieldType >
90  struct DefaultQuadratureTraits< FieldType , 3 >
91  {
92 #ifdef USE_DUNE_QUADRATURES
95 
98 #else
101 
104 #endif
105 
107  };
108 
109  } // namespace Fem
110 
111 } // namespace Dune
112 
113 #undef USE_DUNE_QUADRATURES
114 #endif // #ifndef DUNE_FEM_DEFAULTQUADRATURES_HH
Definition: bindguard.hh:11
Definition: defaultquadratures.hh:33
CubeQuadrature< FieldType, dim > CubeQuadratureType
Definition: defaultquadratures.hh:37
QuadratureImp< FieldType, dim > IntegrationPointListType
Definition: defaultquadratures.hh:39
CubeQuadrature< FieldType, 0 > PointQuadratureType
Definition: defaultquadratures.hh:51
QuadratureImp< FieldType, 0 > IntegrationPointListType
Definition: defaultquadratures.hh:53
QuadratureImp< FieldType, 1 > IntegrationPointListType
Definition: defaultquadratures.hh:67
CubeQuadrature< FieldType, 1 > LineQuadratureType
Definition: defaultquadratures.hh:65
CubeQuadrature< FieldType, 2 > CubeQuadratureType
Definition: defaultquadratures.hh:80
QuadratureImp< FieldType, 2 > IntegrationPointListType
Definition: defaultquadratures.hh:83
SimplexQuadrature< FieldType, 2 > SimplexQuadratureType
Definition: defaultquadratures.hh:81
SimplexQuadrature< FieldType, 3 > SimplexQuadratureType
Definition: defaultquadratures.hh:100
PyramidQuadrature< FieldType > PyramidQuadratureType
Definition: defaultquadratures.hh:103
PrismQuadrature< FieldType > PrismQuadratureType
Definition: defaultquadratures.hh:102
QuadratureImp< FieldType, 3 > IntegrationPointListType
Definition: defaultquadratures.hh:106
CubeQuadrature< FieldType, 3 > CubeQuadratureType
Definition: defaultquadratures.hh:99
quadrature implementation based on the standard DUNE quadratures
Definition: dunequadratures.hh:27
Definition: femquadratures.hh:53
Definition: femquadratures.hh:121
Definition: femquadratures.hh:486
Definition: femquadratures.hh:546
Generic implementation of a Dune quadrature.
Definition: quadratureimp.hh:173