Loading [MathJax]/extensions/tex2jax.js

dune-mmesh (1.4)

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{
10
11 namespace Fem
12 {
13
14 template <class HostGrid, int dim>
15 struct BoundaryIdProvider< MMesh<HostGrid,dim> >
16 {
17 typedef MMesh<HostGrid,dim> GridType;
18
19 template< class Intersection >
20 static int boundaryId ( const Intersection &intersection )
21 {
22 return (intersection.boundary() ? (intersection.impl().boundaryId()) : 0);
23 }
24 };
25
26 template <class MMesh>
27 struct BoundaryIdProvider< MMeshInterfaceGrid<MMesh> >
28 {
29 typedef MMeshInterfaceGrid<MMesh> GridType;
30
31 template< class Intersection >
32 static int boundaryId ( const Intersection &intersection )
33 {
34 return (intersection.boundary() ? (intersection.impl().boundaryId()) : 0);
35 }
36 };
37
38 } // namespace Fem
39
40} // namespace Dune
41
42#endif // #if HAVE_DUNE_FEM
43
44#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 (Apr 13, 22:42, 2025)