dune-mmesh 1.4.1-git
Loading...
Searching...
No Matches
boundaryidprovider.hh
Go to the documentation of this file.
1#ifndef DUNE_MMESH_MISC_BOUNDARYIDPROVIDER_HH
2#define DUNE_MMESH_MISC_BOUNDARYIDPROVIDER_HH
3
4#if HAVE_DUNE_FEM
5
7
8namespace Dune {
9
10namespace Fem {
11
12template <class HostGrid, int dim>
13struct BoundaryIdProvider<MMesh<HostGrid, dim> > {
14 typedef MMesh<HostGrid, dim> GridType;
15
16 template <class Intersection>
17 static int boundaryId(const Intersection &intersection) {
18 return (intersection.boundary() ? (intersection.impl().boundaryId()) : 0);
19 }
20};
21
22template <class MMesh>
23struct BoundaryIdProvider<MMeshInterfaceGrid<MMesh> > {
24 typedef MMeshInterfaceGrid<MMesh> GridType;
25
26 template <class Intersection>
27 static int boundaryId(const Intersection &intersection) {
28 return (intersection.boundary() ? (intersection.impl().boundaryId()) : 0);
29 }
30};
31
32} // namespace Fem
33
34} // namespace Dune
35
36#endif // #if HAVE_DUNE_FEM
37
38#endif // #ifndef DUNE_MMESH_MISC_TWISTUTILITY_HH
size_type dim() const
static int boundaryId(const Intersection &intersection)