1#ifndef DUNE_MMESH_MISC_BOUNDARYIDPROVIDER_HH
2#define DUNE_MMESH_MISC_BOUNDARYIDPROVIDER_HH
6#include <dune/fem/misc/boundaryidprovider.hh>
12template <
class HostGr
id,
int dim>
13struct BoundaryIdProvider<MMesh<HostGrid, dim> > {
14 typedef MMesh<HostGrid, dim> GridType;
16 template <
class Intersection>
17 static int boundaryId(
const Intersection &intersection) {
18 return (intersection.boundary() ? (intersection.impl().boundaryId()) : 0);
23struct BoundaryIdProvider<MMeshInterfaceGrid<MMesh> > {
24 typedef MMeshInterfaceGrid<MMesh> GridType;
26 template <
class Intersection>
27 static int boundaryId(
const Intersection &intersection) {
28 return (intersection.boundary() ? (intersection.impl().boundaryId()) : 0);