DUNE-FEM (unstable)

voidfilter.hh
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 >
14 class VoidFilter
15 {
16 public:
17 typedef VoidFilter FilterType;
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
27 typedef typename Codim< 0 >::EntityType EntityType;
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
Dune namespace.
Definition: alignedallocator.hh:13
constexpr std::bool_constant<((II==value)||...)> contains(std::integer_sequence< T, II... >, std::integral_constant< T, value >)
Checks whether or not a given sequence contains a value.
Definition: integersequence.hh:137
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 27, 22:29, 2024)