DUNE-ACFEM (2.5.1)

quadrature.hh
1#ifndef __DUNE_ACFEM_QUADRATURE_HH__
2#define __DUNE_ACFEM_QUADRATURE_HH__
3
4#include <dune/fem/quadrature/cachingquadrature.hh>
5#include <dune/fem/quadrature/intersectionquadrature.hh>
6#include <dune/fem/quadrature/lumpingquadrature.hh>
7
8namespace Dune {
9
10 namespace ACFem {
11
19 template<class GridPart>
21 {
22 typedef GridPart GridPartType;
23 typedef Fem::CachingQuadrature<GridPartType, 0> BulkQuadratureType;
24 typedef Fem::CachingQuadrature<GridPartType, 1> FaceQuadratureType;
25
26 typedef BulkQuadratureType BulkMassQuadratureType;
27 typedef FaceQuadratureType FaceMassQuadratureType;
28 };
29
37 template<class GridPart, bool faceLumping = false>
39 : DefaultQuadratureTraits<GridPart>
40 {
41 protected:
43 public:
44 typedef typename BaseType::GridPartType GridPartType;
45 typedef typename BaseType::BulkQuadratureType BulkQuadratureType;
46 typedef typename BaseType::FaceQuadratureType FaceQuadratureType;
47
48 typedef Fem::CachingLumpingQuadrature<GridPartType, 0> BulkMassQuadratureType;
49 // Is it necessary to lump the face-quadrature to get a discrete
50 // comparison principle? I guess not ...
51 typedef typename std::conditional<faceLumping,
52 Fem::CachingLumpingQuadrature<GridPartType, 1>,
53 typename BaseType::FaceMassQuadratureType>::type
54 FaceMassQuadratureType;
55 };
56
58
59 } // namespace ACFem
60
61} // namespace Dune
62
63#endif // __DUNE_ACFEM_QUADRATURE_HH__
Helper traits-class, defining likely quadrature types.
Definition: quadrature.hh:21
Helper traits-class, defining likely quadrature types for mass-lumping.
Definition: quadrature.hh:40
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)