dune-pdelab  2.7-git
noconstraints.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_PDELAB_CONSTRAINTS_NOCONSTRAINTS_HH
4 #define DUNE_PDELAB_CONSTRAINTS_NOCONSTRAINTS_HH
5 
7 
8 #include <dune/typetree/typetree.hh>
9 
10 namespace Dune {
11  namespace PDELab {
12 
16 
17  // Empty constraints assembler class
19  : public TypeTree::LeafNode
20  {
21  public:
22  enum { doBoundary = false };
23  enum { doProcessor = false }; // added ParallelStuff
24  enum { doSkeleton = false };
25  enum { doVolume = false }; // might be necessary for cell-centered in parallel
26 
27  // methods are here just to show interfaces; they are never called because doX are false above
28  template<typename F, typename I, typename LFS, typename T>
29  void boundary (const F& f, const IntersectionGeometry<I>& ig, const LFS& lfs, T& trafo) const
30  {
31  }
32 
33  template<typename I, typename LFS, typename T>
34  void processor (const IntersectionGeometry<I>& ig, const LFS& lfs, T& trafo) const
35  {
36  }
37 
38  template<typename I, typename LFS, typename T>
39  void skeleton (const IntersectionGeometry<I>& ig, const LFS& lfs, T& trafo) const
40  {
41  }
42 
43  template<typename E, typename LFS, typename T>
44  void volume (const ElementGeometry<E>& eg, const LFS& lfs, T& trafo) const
45  {
46  }
47 
48  };
49 
50  } // namespace PDELab
51 } // namespace Dune
52 
53 #endif // DUNE_PDELAB_CONSTRAINTS_NOCONSTRAINTS_HH
const IG & ig
Definition: constraints.hh:149
void processor(const IntersectionGeometry< I > &ig, const LFS &lfs, T &trafo) const
Definition: noconstraints.hh:34
void boundary(const F &f, const IntersectionGeometry< I > &ig, const LFS &lfs, T &trafo) const
Definition: noconstraints.hh:29
void skeleton(const IntersectionGeometry< I > &ig, const LFS &lfs, T &trafo) const
Definition: noconstraints.hh:39
void volume(const ElementGeometry< E > &eg, const LFS &lfs, T &trafo) const
Definition: noconstraints.hh:44
@ doBoundary
Definition: noconstraints.hh:22
@ doProcessor
Definition: noconstraints.hh:23
@ doSkeleton
Definition: noconstraints.hh:24
@ doVolume
Definition: noconstraints.hh:25
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
Wrap element.
Definition: geometrywrapper.hh:16
Wrap intersection.
Definition: geometrywrapper.hh:57
Definition: noconstraints.hh:20