DUNE PDELab (git)

noconstraints.hh
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
6#include <dune/pdelab/common/geometrywrapper.hh>
7
8#include <dune/typetree/typetree.hh>
9
10namespace Dune {
11 namespace PDELab {
12
16
17 // Empty constraints assembler class
18 class NoConstraints
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
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)