dune-fem 2.8.0
Loading...
Searching...
No Matches
voidfilter.hh
Go to the documentation of this file.
1#ifndef DUNE_FEM_GRIDPART_FILTER_VOIDFILTER_HH
2#define DUNE_FEM_GRIDPART_FILTER_VOIDFILTER_HH
3
4namespace Dune
5{
6
7 namespace Fem
8 {
9
10 // VoidFilter
11 // ------------
12
13 template< class GridPart >
15 {
16 public:
18
19 typedef GridPart GridPartType;
20
21 template < int cd >
22 struct Codim
23 {
24 typedef typename GridPartType::template Codim< cd >::EntityType EntityType;
25 };
26
28
29 template< class Entity >
30 static bool contains ( const Entity & )
31 {
32 return true;
33 }
34
35 template< int cd >
36 static bool contains ( const typename Codim< cd >::EntityType & )
37 {
38 return true;
39 }
40
41 template < class Intersection >
42 static bool intersectionBoundary( const Intersection & )
43 {
44 return true;
45 }
46
47 template < class Intersection >
48 static int intersectionBoundaryId(const Intersection & )
49 {
50 return 1;
51 }
52
53 template <class Intersection >
54 static bool intersectionNeighbor( const Intersection & )
55 {
56 return true;
57 }
58
59 template< class Intersection >
60 static bool interiorIntersection( const Intersection & )
61 {
62 return true;
63 }
64
65 }; // end RadialFilter
66
67 } // namespace Fem
68
69} // namespace Dune
70
71#endif // #ifndef DUNE_FEM_GRIDPART_FILTER_VOIDFILTER_HH
Definition: bindguard.hh:11
Definition: voidfilter.hh:15
VoidFilter FilterType
Definition: voidfilter.hh:17
Codim< 0 >::EntityType EntityType
Definition: voidfilter.hh:27
static bool intersectionBoundary(const Intersection &)
Definition: voidfilter.hh:42
static bool contains(const typename Codim< cd >::EntityType &)
Definition: voidfilter.hh:36
static int intersectionBoundaryId(const Intersection &)
Definition: voidfilter.hh:48
static bool interiorIntersection(const Intersection &)
Definition: voidfilter.hh:60
static bool contains(const Entity &)
Definition: voidfilter.hh:30
static bool intersectionNeighbor(const Intersection &)
Definition: voidfilter.hh:54
GridPart GridPartType
Definition: voidfilter.hh:19
Definition: voidfilter.hh:23
GridPartType::template Codim< cd >::EntityType EntityType
Definition: voidfilter.hh:24