dune-mmesh (unstable)

boundaryidprovider.hh
1#ifndef DUNE_MMESH_MISC_BOUNDARYIDPROVIDER_HH
2#define DUNE_MMESH_MISC_BOUNDARYIDPROVIDER_HH
3
4#if HAVE_DUNE_FEM
5
6#include <dune/fem/misc/boundaryidprovider.hh>
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
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Sep 5, 22:35, 2025)