3.3.0
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
glue.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
26#ifndef DUMUX_MULTIDOMAIN_GLUE_HH
27#define DUMUX_MULTIDOMAIN_GLUE_HH
28
32
33namespace Dumux {
34
39template<class DomainGridView, class TargetGridView, class DomainMapper, class TargetMapper>
42
51template<class DomainGG, class TargetGG>
52MultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView,
53 typename DomainGG::ElementMapper, typename TargetGG::ElementMapper >
54makeGlue(const DomainGG& domainGridGeometry, const TargetGG& targetGridGeometry)
55{
56 MultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView,
57 typename DomainGG::ElementMapper, typename TargetGG::ElementMapper > glue;
58 glue.build(domainGridGeometry.boundingBoxTree(), targetGridGeometry.boundingBoxTree());
59 return glue;
60}
61
62} // end namespace Dumux
63
64#endif
MultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView, typename DomainGG::ElementMapper, typename TargetGG::ElementMapper > makeGlue(const DomainGG &domainGridGeometry, const TargetGG &targetGridGeometry)
Creates the glue object containing the intersections between two grids obtained from given grid geome...
Definition: glue.hh:54
Definition: adapt.hh:29
An interface for a set of geometric entities based on a GridView.
Definition: geometry/geometricentityset.hh:42
A class representing the intersection entites two geometric entity sets.
Definition: geometry/intersectionentityset.hh:55
void build(std::shared_ptr< const DomainEntitySet > domainSet, std::shared_ptr< const TargetEntitySet > targetSet)
Build intersections.
Definition: geometry/intersectionentityset.hh:160
An axis-aligned bounding box volume hierarchy for dune grids.
An interface for a set of geometric entities.
A class representing the intersection entites two geometric entity sets.