version 3.10-dev
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// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5// SPDX-License-Identifier: GPL-3.0-or-later
6//
14#ifndef DUMUX_MULTIDOMAIN_GLUE_HH
15#define DUMUX_MULTIDOMAIN_GLUE_HH
16
20
21namespace Dumux {
22
27template<class DomainGridView, class TargetGridView, class DomainMapper, class TargetMapper>
30
39template<class DomainGG, class TargetGG>
40MultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView,
41 typename DomainGG::ElementMapper, typename TargetGG::ElementMapper >
42makeGlue(const DomainGG& domainGridGeometry, const TargetGG& targetGridGeometry)
43{
44 MultiDomainGlue< typename DomainGG::GridView, typename TargetGG::GridView,
45 typename DomainGG::ElementMapper, typename TargetGG::ElementMapper > glue;
46 glue.build(domainGridGeometry.boundingBoxTree(), targetGridGeometry.boundingBoxTree());
47 return glue;
48}
49
50} // end namespace Dumux
51
52#endif
An axis-aligned bounding box volume hierarchy for dune grids.
An interface for a set of geometric entities based on a GridView.
Definition: geometricentityset.hh:37
A class representing the intersection entities two geometric entity sets.
Definition: intersectionentityset.hh:131
void build(std::shared_ptr< const DomainEntitySet > domainSet, std::shared_ptr< const TargetEntitySet > targetSet)
Build intersections.
Definition: intersectionentityset.hh:166
An interface for a set of geometric entities.
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:42
A class representing the intersection entities of two geometric entity sets.
Definition: adapt.hh:17